- Fix: Correct the scale text positioning when a Bitmap is drawn at an offset.
- Fix: Use a BitmapShader to draw the pixel grid making initialization instant
- Fix: Use a more efficient size and allocation for the grid. This reduces memory consumption of the layout by over 90% with no adverse performance effects.
- Fix: Tile the grid to ensure we cover the entire bitmap size.
- Fix: Do not allocate large bitmap unless actually enabled.
- Fix: Invalidate view when changing whether the scale ratio is enabled.
- New: Option to draw the scale ratio as text on top of the pixel grid. Control with
setOverlayRatioEnabled
.
- Properly expose whether the overlay is enabled or not via
isOverlayEnabled()
. - Toggling the overlay will automatically trigger a drawing pass.
- Free bitmap resources when disabling the overlay.
- Fix: Changing the color now actually changes the color.
Initial release.