PictureEdit.UseDirectXPaint Property

Gets or sets whether or not this PictureEdit uses the DirectX Hardware Acceleration.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Appearance")]
[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean UseDirectXPaint { get; set; }
<DXCategory("Appearance")>
<DefaultValue(DefaultBoolean.Default)>
Public Property UseDirectXPaint As DefaultBoolean

Property Value

Type Default Description
DefaultBoolean

Default

A DefaultBoolean enum value that specifies whether or not this control employs the DirectX Hardware Acceleration. To enable DirectX hardware acceleration, call the static WindowsFormsSettings.ForceDirectXPaint method and set UseDirectXPaint to DefaultBoolean.True.

Remarks

The static WindowsFormsSettings.ForceDirectXPaint method does not affect Picture Edits. To enable the DirectX Hardware accelleration for required Picture Edit controls, you need to manually enable their UseDirectXPaint properties.

The DirectX engine allows you to improve the scrolling and resizing performance for PictureEdits that contain huge images.

PictureEdit - DirectX Rendering

Show animation (GDI+ rendering)

PictureEdit - GDI Rendering

NOTE

Only modify the UseDirectXPaint setting before the control's handle is created. For instance, you can do this at design time, or in the form's constructor.

See Also