EditorButton.EnableImageTransparency Property
Gets or sets whether specific colors in the button’s image are transparent, when displayed. This property is obsolete. Use the EditorButton.ImageOptions.EnableTransparency
property instead.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.2.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.ImageOptions property, if the EditorButton.Kind property is set to ButtonPredefines.Glyph. If the image contains transparency, it is displayed as is, with transparency, regardless of the EnableImageTransparency option.
The EnableImageTransparency option is in effect for images without transparent pixels. When it is set to true, all pixels that match the color of the left top corner are displayed transparent. If the option is disabled, the image is displayed as is.