Skip to content

TBLPixelConverterCreateFlag

Flags used by TBLPixelConverter.Make function.

Definition

Unit: Blend2D

type TBLPixelConverterCreateFlag = (DontCopyPalette, AlterablePalette, NoMultiStep)

See Also

Enumeration Values

DontCopyPalette = 0

Specifies that the source palette in TBLFormatInfo doesn't have to by copied by TBLPixelConverter. The caller must ensure that the palette would stay valid until the pixel converter is destroyed.


AlterablePalette = 1

Specifies that the source palette in TBLFormatInfo is alterable and the pixel converter can modify it when preparing the conversion. The modification can be irreversible so only use this flag when you are sure that the palette passed to TBLPixelConverter.Make won't be needed outside of pixel conversion.


NoMultiStep = 2

When there is no built-in conversion between the given pixel formats it's possible to use an intermediate format that is used during conversion. In such case the base pixel converter creates two more converters that are then used internally.

This option disables such feature - creating a pixel converter would fail if direct conversion is not possible.