KeepAlphaChannel Property (ChangePixelFormatToBgrCommand)
Gets or sets a value indicating whether the command must keep values of alpha channel in image data when converting image from Bgr32 format to Bgra32 format and vice versa.
'Declaration
<DefaultValueAttribute(False)>
<DescriptionAttribute("A value indicating whether the command must keep values of alpha channel in image data when converting image from Bgr32 format to Bgra32 format and vice versa.")>
Public Property KeepAlphaChannel As Boolean
[DefaultValue(False)]
[Description("A value indicating whether the command must keep values of alpha channel in image data when converting image from Bgr32 format to Bgra32 format and vice versa.")]
public bool KeepAlphaChannel { get; set; }
[DefaultValue(False)]
[Description("A value indicating whether the command must keep values of alpha channel in image data when converting image from Bgr32 format to Bgra32 format and vice versa.")]
public: __property bool get_KeepAlphaChannel();
public: __property void set_KeepAlphaChannel(
bool
);
[DefaultValue(False)]
[Description("A value indicating whether the command must keep values of alpha channel in image data when converting image from Bgr32 format to Bgra32 format and vice versa.")]
public:
property bool KeepAlphaChannel {
bool get();
void set(bool );
}
Property Value
false - command will ignore values of alpha channel stored in image data; true - command will use values of alpha channel stored in image data, for example, this is necessary when bitmap is retrieved from Windows clipboard because Windows clipboard returns image as Bgr32 image but image data may contain transparent colors.
Default value is false.
Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5