VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.ImageProcessing Namespace / ChangePixelFormatToBgrCommand Class / KeepAlphaChannel Property
Syntax Requirements SeeAlso
In This Topic
    KeepAlphaChannel Property (ChangePixelFormatToBgrCommand)
    In This Topic
    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.
    Syntax
    'Declaration
    
    <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.")>
    <DefaultValueAttribute(False)>
    Public Property KeepAlphaChannel As Boolean
    
    
    [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.")]
    [DefaultValue(False)]
    public bool KeepAlphaChannel { get; set; }
    
    
    [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.")]
    [DefaultValue(False)]
    public: __property bool get_KeepAlphaChannel();
    public: __property void set_KeepAlphaChannel(
    bool value
    );
    [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.")]
    [DefaultValue(False)]
    public:
    property bool KeepAlphaChannel { bool get(); void set(bool value); }

    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.
    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also