EditorButton.EnableImageTransparency Property
Gets or sets whether specific colors in the button’s image are transparent, when displayed.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
[Browsable(false)]
[DefaultValue(true)]
[DXCategory("Appearance")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool EnableImageTransparency { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | true | true if specific colors in the button’s image are transparent, when displayed; otherwise, false. |
Remarks
A button can display an image, specified by the EditorButton.Image property, if the EditorButton.Kind property is set to ButtonPredefines.Glyph. If the image contains transparency, it’s displayed as is, with transparency, regardless of the EnableImageTransparency option.
The EnableImageTransparency option is in effect for images without transparent pixels. When it’s set to true, all pixels whose color matches the color of the left top corner are displayed transparent. If the option is disabled, the image is displayed as is.