Filter Case Identifiers

These cases are used to index the behavior properties and are passed to the filter in the FilterRecord::filterCase field. More...

Filter Case Identifiers: passed in filterCase field

#define filterCaseUnsupported   -1
 Host does not support this case.
#define filterCaseFlatImageNoSelection   1
 A background layer or a flat image.
#define filterCaseFlatImageWithSelection   2
 No transparency data, but a selection may be present.
#define filterCaseFloatingSelection   3
 Image data with an accompanying mask.
#define filterCaseEditableTransparencyNoSelection   4
 Layer with transparency editing enabled and no selection.
#define filterCaseEditableTransparencyWithSelection   5
 Layer with transparency editing enabled and a selection.
#define filterCaseProtectedTransparencyNoSelection   6
 Layer with transparency editing disabled and no selection.
#define filterCaseProtectedTransparencyWithSelection   7
 Layer with transparency editing disabled and a selection.

Detailed Description

These cases are used to index the behavior properties and are passed to the filter in the FilterRecord::filterCase field.

of the parameter block.


Define Documentation

#define filterCaseUnsupported   -1

Host does not support this case.

A background layer or a flat image.

There is no transparency data or selection.

No transparency data, but a selection may be present.

The selection will be presented as mask data.

Image data with an accompanying mask.

Layer with transparency editing enabled and no selection.

If the editable transparency cases are unsupported, then Photoshop tries the corresponding protected transparency cases. This governs whether the filter is expected to filter the transparency data with the color data.

Layer with transparency editing enabled and a selection.

If the editable transparency cases are unsupported, then Photoshop tries the corresponding protected transparency cases. This governs whether the filter is expected to filter the transparency data with the color data.

Layer with transparency editing disabled and no selection.

If the protected transparency case without a selection is disabled, the layer data is treated as a floating selection. Transparency data will be presented via the mask portion of the interface rather than with the input data.

Layer with transparency editing disabled and a selection.

If the protected transparency case without a selection is disabled, the layer data is treated as a floating selection. Transparency data will be presented via the mask portion of the interface rather than with the input data.