FilterCaseInfo Handling Modes

Modes for input and output handling. More...

FilterCaseInfo Handling Modes

#define filterDataHandlingCantFilter   0
 Indicates that this case is not supported by the plug-in filter.
#define filterDataHandlingNone   1
 Indicates that the plug-in filter does not expect the plug-in host to do anything to the image data.
#define filterDataHandlingBlackMat   2
 Matte the image data with black (=0) values based on the transparency on input; dematte the image data using black values on output.
#define filterDataHandlingGrayMat   3
 Matte the image data with gray (=128) values based on the transparency on input; dematte the image data using gray values on output.
#define filterDataHandlingWhiteMat   4
 Matte the image data with white (=255) values based on the transparency on input; dematte the image data using white values on output.
#define filterDataHandlingDefringe   5
 Defringe transparent areas filling with the nearest defined pixels using taxicab distance.
#define filterDataHandlingBlackZap   6
 Set color component of totally transparent pixels to black.
#define filterDataHandlingGrayZap   7
 Set color component of totally transparent pixels to gray.
#define filterDataHandlingWhiteZap   8
 Set color component of totally transparent pixels to white.
#define filterDataHandlingFillMask   9
 Automatically fills the transparency mask with full opacity in the area affected by the filter.
#define filterDataHandlingBackgroundZap   10
 Set color component of totally transparent pixels to the current background color.
#define filterDataHandlingForegroundZap   11
 Set color component of totally transparent pixels to the current foreground color.

Detailed Description

Modes for input and output handling.

These specify the preprocessing and postprocessing actions on the image data. Used with FilterCaseInfo::inputHandling and FilterCaseInfo::outputHandling fields.


Define Documentation

#define filterDataHandlingCantFilter   0

Indicates that this case is not supported by the plug-in filter.

Used for both input and output modes.

#define filterDataHandlingNone   1

Indicates that the plug-in filter does not expect the plug-in host to do anything to the image data.

Used for both input and output modes.

#define filterDataHandlingBlackMat   2

Matte the image data with black (=0) values based on the transparency on input; dematte the image data using black values on output.

#define filterDataHandlingGrayMat   3

Matte the image data with gray (=128) values based on the transparency on input; dematte the image data using gray values on output.

#define filterDataHandlingWhiteMat   4

Matte the image data with white (=255) values based on the transparency on input; dematte the image data using white values on output.

#define filterDataHandlingDefringe   5

Defringe transparent areas filling with the nearest defined pixels using taxicab distance.

This only applies to fully transparent pixels. Input-only mode.

#define filterDataHandlingBlackZap   6

Set color component of totally transparent pixels to black.

Input-only mode.

#define filterDataHandlingGrayZap   7

Set color component of totally transparent pixels to gray.

Input-only mode.

#define filterDataHandlingWhiteZap   8

Set color component of totally transparent pixels to white.

Input-only mode.

#define filterDataHandlingFillMask   9

Automatically fills the transparency mask with full opacity in the area affected by the filter.

This is only valid for the editable transparency cases. This option is provided to make it easy to write a plug-in similar to the Photoshop Clouds plug-in, which fills an area with a value. Output-only mode.

#define filterDataHandlingBackgroundZap   10

Set color component of totally transparent pixels to the current background color.

Input-only mode.

#define filterDataHandlingForegroundZap   11

Set color component of totally transparent pixels to the current foreground color.

Input-only mode.