Skip to content

v0.1.2 — DPI fix + color picker

Choose a tag to compare

@estevanhernandez-stack-ed estevanhernandez-stack-ed released this 16 May 22:40

What changed

Fix 1: DPI mismatch in RegionPickerOverlay

On 125%/150% displays, the region picker had two linked bugs:

  • The loupe was showing pixels offset from the cursor (loupe coordinates were in WPF DIPs, but CaptureEngine.Capture and Loupe.UpdateAt expect raw screen pixels).
  • The saved RegionRect was also in DIPs, so triggers fired against the wrong area at runtime.

Fixed by calling VisualTreeHelper.GetDpi and multiplying all pixel coordinates before passing them to the capture engine or storing them. The readout in the picker now shows true pixel coordinates.

Fix 2 + 3: ColorPickerDialog — post-region-pick color sampling

After picking a region, the plugin now captures that region as a bitmap and opens a dialog showing the live capture. Click any pixel in the image to set the target color. A slider sets the tolerance (default 15). Cancel aborts the whole flow.

Default sampling mode for new triggers is now SinglePixel instead of RegionAverage — this matches the intent when the user clicks a specific pixel in the color picker.

Upgrade note

Uninstall v0.1.1 in RoRoRo → Plugins before installing v0.1.2. Saved triggers from v0.1.1 that were created on a high-DPI display will have incorrect region coordinates — re-create any triggers that were misbehaving.

Install URL

Paste into RoRoRo → Plugins → Install:

https://github.com/estevanhernandez-stack-ed/Ur-OCR/releases/download/v0.1.2/