IDithererInitializeReliesOnContent Property

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

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

bool InitializeReliesOnContent { get; }

Property Value

Type: Boolean
Remarks

This property should return , if Initialize method relies on the exact content to be dithered in order to make the GetDitheredColor 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 GetDitheredColor 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 dithering the result, while returning  allows the ditherer to be initialized with the source image and let the GetDitheredColor method to be called with colors that are blended on-the-fly during the dithering.

See Also

Reference