Older Newer
Tue, 10 Aug 2021 04:34:48 . . . . SyneRyder [Add more color modes and relevant constant names]


Changes by last author:

Added:
= imageMode =

== Syntax ==

int imageMode

== Definition ==

The mode of the image being filtered, where Bitmap = 0, Gray Scale = 1, Indexed Color = 2, RGB Color = 3, CMYK Color = 4, HSL Color = 5, HSB Color = 6, Multichannel = 7, Duotone = 8, Lab Color = 9, 16-bit Gray Scale = 10, 48-bit RGB Color = 11, 48-bit Lab Color = 12, 64-bit CMYK Color = 13, Deep Multichannel Color = 14 and 16-bit Duotone = 15.

== Example ==

<code>

%ffp

OnFilterStart: {

switch(imageMode) {

case 0:

// Same as BitmapMode

Info("Bitmap (1-bit) Image");

break;

case 1:

// Same as GrayScaleMode

Info("Greyscale Image");

break;

case 2:

// Same as IndexedColorMode

Info("Indexed Color Image");

break;

case 3:

// Same as RGBMode

Info("RGB Image");

break;

case 4:

// Same as CMYKMode

Info("CMYK Image");

break;

case 5:

// Same as HSLMode

Info("HSL Image");

break;

case 6:

// Same as HSBMode

Info("HSB Image");

break;

case 7:

// Same as MultichannelMode

Info("Multichannel Image");

break;

case 8:

// Same as DuotoneMode

Info("Duotone Image");

break;

case 9:

// Same as LabMode

Info("Lab Color Image");

break;

case 10:

// Same as Gray16Mode

Info("16-bit Greyscale Image");

break;

case 11:

// Same as RGB48Mode

Info("48-bit RGB Color Image");

break;

case 12:

// Same as Lab48Mode

Info("48-bit Lab Color Image");

case 13:

// Same as CMYK64Mode

Info("64-bit CMYK Color Image");

case 14:

// Same as DeepMultichannelMode

Info("Deep Multichannel Color Image");

case 15:

// Same as Duotone16Mode

Info("16-bit Duotone Image");

default:

Info ("Unknown image mode");

break;

}

return false;

}

</code>

== See Also ==

Filter Specifications