VintaSoft Imaging .NET SDK 15.1: 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

<DefaultValueAttribute(True)>
<DescriptionAttribute("A value indicating whether the image processing command preserves the pixel format of processing images.")>
Public Property PreservePixelFormat As Boolean

[DefaultValue(True)]
[Description("A value indicating whether the image processing command preserves the pixel format of processing images.")]
public bool PreservePixelFormat { get; set; }

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 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also