What is new in Graphics Sub-system .NET 4.0?

What is new in Graphics Sub-system .NET 4.0?

Here are some of the new features that have been fixed or implemented in the graphics sub-system of .NET 4.0.

1.    UIElement supports BitmapCache

2.    WPF now supports layout rounding with the UseLayoutRounding attached property on FrameworkElement.

3.    WPF 4 builds on top of the ShaderEffect support introduced in WPF 3.5 SP1 by allowing applications to now write effects by using Pixel Shader (PS) version 3.0.

4.    The WPF text rendering stack has been completely replaced. This change brings improvements to text rendering configurability, clarity, and support for international languages. The new text stack now supports explicitly selecting aliased, grayscale, or ClearType rendering modes. The text stack now supports display-optimized character layout, to produce text with sharpness comparable to Win32/GDI text. The new text stack allows optimizing text hinting and snapping for either animated or static text. The new text stack also supports fonts with embedded bitmaps to be substituted for smaller font sizes, allowing many East Asian fonts to render with sharpness comparable to Win32/GDI text.

5.    The WPF text rendering stack has been completely replaced. This change brings improvements to text rendering configurability, clarity, and support for international languages. The new text stack now supports explicitly selecting aliased, grayscale, or ClearType rendering modes. The text stack now supports display-optimized character layout, to produce text with sharpness comparable to Win32/GDI text. The new text stack allows optimizing text hinting and snapping for either animated or static text. The new text stack also supports fonts with embedded bitmaps to be substituted for smaller font sizes, allowing many East Asian fonts to render with sharpness comparable to Win32/GDI text.

6.    You can now specify the brush that paints the selection and caret for input and reading controls, such as TextBox RichTextBox, and FlowDocumentReader. There are two new properties on TextBoxBase:

a.    SelectionBrush allows you to create a brush for highlighting selected text.

b.    CaretBrush allows you to change the brush that paints the cursor.

7.    Interop with GDI and GDI+

a.    InteropBitmap

b.    WriteableBitmap – double buffer with GDI+

8.    Support of D3D10, D3D11, D2D, DX9, DX10

9.    Eliminate Application Blurriness

a.    Set rootnode of your application to inherited

b.    ClearText – Set TextOptions.TextFormattingMode = “Display” on the rootnode of your app – inherited.

10.  Disable Hardware Acceleration Process-Wide

a.    RenderOptions.ProcessRenderMode