On some monitors, it seems that thin WPF lines are blurred across two pixels instead of one. Ick. How do I get sharply rendered lines?

  Rectangle Without Pixel snapping With Pixel Snapping An anti-aliased rectangle zoomed in on Magnifier:   WPF offers a way to get sharp lines and keep anti-aliasing, by auto-magically aligning the horizontal and vertical edges of a UIElement to land on the pixel grid when you set UIElement.SnapsToDevicePixels=true. The property inherits: set SnapsToDevicePixels on your…

4

Layered windows...SW is sometimes faster than HW

Previously, I had posted that Avalon’s layered windows on XP will be rendered via the software pipeline. One can create a layered window by setting Window.AllowsTransparency=”true”. I’ve seen a few forum posts about performance issues, and the key takeaway point is that your mileage will vary depending on your video card. In order to render…

8

After animating text, the text seems to pause for 1 second and then render more sharply than before. Why is that?

  In all 4 images, we see anti-aliased, sub-pixel positioned, ClearType text. The rendering on the right column is pixel snapped, which sends the glyphs through a refined codepath by Mikhail Lyapunov for rendering the final text in an extremely polished state; every time one changes the location or size of the text, it runs…

4