VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.ImageProcessing.Transforms Namespace / MatrixTransformCommand Class / PreservePixelFormat Property
Syntax Remarks Requirements SeeAlso
In This Topic
    PreservePixelFormat Property (MatrixTransformCommand)
    In This Topic
    Gets or sets a value indicating whether the image processing command preserves the pixel format of processing images.
    Syntax
    'Declaration
    
    <DescriptionAttribute("A value indicating whether the image processing command preserves the pixel format of processing images.")>
    <DefaultValueAttribute(True)>
    Public Property PreservePixelFormat As Boolean
    
    
    [Description("A value indicating whether the image processing command preserves the pixel format of processing images.")]
    [DefaultValue(True)]
    public bool PreservePixelFormat { get; set; }
    
    
    [Description("A value indicating whether the image processing command preserves the pixel format of processing images.")]
    [DefaultValue(True)]
    public: __property bool get_PreservePixelFormat();
    public: __property void set_PreservePixelFormat(
    bool value
    );
    [Description("A value indicating whether the image processing command preserves the pixel format of processing images.")]
    [DefaultValue(True)]
    public:
    property bool PreservePixelFormat { bool get(); void set(bool value); }

    Property Value

    true - processed image will have same pixel format as the source image; false - processed image will have pixel format Bgr24 or Bgra32.
    Remarks

    Setting this property's value to false allows to improve performance because preserving the pixel format is not required. Also, it allows to perform your own conversion of processed image from Bgr24/Bgra32 to required format.

    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