Skip to content

Conversation

niklasb-ms
Copy link
Contributor

Description

This improves text sharpness of text in the DrawingIsland sample by ensuring the surface brush is not scaled or subpixel-positioned. The specific changes are:

  • Set the drawing surface width and height to be a multiple of 1 pixel.
  • Set the visual width and height to exactly match (but in DIPs rather than pixels).
  • Enable pixel snapping for the visual.

@niklasb-ms niklasb-ms merged commit 13b288a into user/jeffstall/drawingisland May 10, 2024
@niklasb-ms niklasb-ms deleted the user/niklasb/pixel_snapping branch May 10, 2024 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants