IQuantizerInitializeReliesOnContent Property

KGy SOFT Drawing Libraries Help
Gets whether Initialize relies on the actual content of the source to be quantized.
See the Remarks section for details.

Namespace:  KGySoft.Drawing.Imaging
Assembly:  KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 6.2.0

bool InitializeReliesOnContent { get; }

Property Value

Type: Boolean

This property should return , if Initialize method relies on the exact content to be quantized in order to generate a palette and make the GetQuantizedColor method work properly.

If this property returns , then Initialize will be called with an IReadableBitmapData instance, whose Height and Width properties can be used but the actual content might be different from the one will be used when calling the GetQuantizedColor method.

The return value of this property may affect the performance of some drawing operations where returning  forces the source and target images to be blended together before quantizing the result, while returning  allows the quantizer to be initialized with the source image and let the GetQuantizedColor method to be called with colors that are blended on-the-fly during the quantization.

See Also