CustomBitmapDataConfigBaseBackBufferIndependentPixelAccess Property

Gets or sets whether the pixel accessor delegates are not tied to a specific buffer instance or memory location but can work with any buffer. If the pixel accessor delegates do not capture any specific buffer instance and access the bitmap data only by the ICustomBitmapDataRow parameter of the delegate, then it is safe to set this property to .
Default value: .

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 9.0.0
C#
public bool BackBufferIndependentPixelAccess { get; set; }

Property Value

Boolean

Remarks

It is always recommended to create buffer-independent accessors. If you do so, then you can set this property to , which allows improving the quality of some operations.

When this property is , then an exact clone of a bitmap data with custom format preserves the original pixel format. Otherwise, the clone will have a KnownPixelFormat and the raw data of the original pixels might have a different structure.

The value of this property affects also the quality of the quantizers created by the PredefinedColorsQuantizer.FromBitmapData method. If this property returns , then the quantizer will be able to reproduce the exact colors of the original custom bitmap data. Otherwise, the quantizer may not work correctly for non-indexed bitmaps or for bitmaps with more than 8 bits-per-pixels.

For safety reasons the default value of this property is .

See Also