Version

DisableInvalidRectRenderingOptimizations Property

Gets or sets the value that indicates whether the rendering optimizations introduced in 7.3 for rendering to invalid rects should be disabled.
Syntax
'Declaration
 
Public Shared Property DisableInvalidRectRenderingOptimizations As Boolean
public static bool DisableInvalidRectRenderingOptimizations {get; set;}

Property Value

True if the old style invalid rect rendering should be performed; False to enable the more performant style of invalid rect rendering.
Remarks

In 7.3, performance enahancements were made to the PLF's drawing logic so when the invalid area of the paint operation is not the full size of the control, the internal drawing buffer created for painting is only the size of the invalid area. Previously, the buffer's size was increased so its top-left corner matched the top-left corner of the control. This made paint operations like this slower, but did have the benefit of having all Graphics objects in all drawing situations backed by buffers with the same origin.

With the invalid rect performance optimizations enabled, any code changing the Transform or RenderingOrigin of a Graphics object must first determine the current Transform or RenderingOrigin and offset them instead of replacing them. Likewise, if unmanaged drawing methods are being used and an hDC created from the Graphics object is passed into these unmanaged methods with a location or rect to draw to, the locations and rects must be transformed with the TransformPoints method of the Transform on the Graphics object.

Note: If it is not possible or too time consuming to make the changes necessary for the drawing logic to be correct as described above, this property should be set to True.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also