ImageConvertOptions
Contains various options for converting an image from one pixel format to another.
Constants
Name | Value |
---|---|
MASK_NONE |
0 |
MASK_COLOUR |
1 |
MASK_ALPHA |
2 |
MASK_BRIGHTNESS |
3 |
Properties
Property | Type | Description |
---|---|---|
The palette to use for the target image if it is 8-bit indexed but has no internal palette | ||
The palette to convert to | ||
What to use to generate the alpha channel in the converted image. See MASK_ constants above |
||
The colour to use as transparent if MASK_COLOUR |
||
The threshold 8-bit alpha value to use in cases where the target image format does not support a full alpha channel. Anything less than this will be fully transparent | ||
If false , all pixels in the converted image will be set to fully opaque |
||
The pixel format to use if the target image format supports multiple (see Image.PIXELFORMAT_ constants) |
Constructors
Creates a new
maskSource :MASK_ALPHA
alphaThreshold :0
transparency :true