PickParms Struct Reference

Structure used to return the color selected by the user. More...

#include <PIPicker.h>

Data Fields

int16 sourceSpace
 The color space the original color is in.
int16 resultSpace
 The color space of the returned result.
unsigned16 colorComponents [4]
 Contains the original color when the plug-in is called with selectorPick.
Str255 * pickerPrompt
 Prompt string.

Detailed Description

Structure used to return the color selected by the user.


Field Documentation

The color space the original color is in.

See Color Space for values.

The color space of the returned result.

See Color Space for values. Can be plugIncolorServicesChosenSpace

Contains the original color when the plug-in is called with selectorPick.

The plug-in should write the returned color here as well.

The values of the array depend on the color space.

colorComponents array structure
Color Space[0][1][2][3]
RGBred from 0...255green from 0...255blue from 0...255undefined
HSBhue from 0...359 degreessaturation from 0...359 degrees (representing 0%...100%)brightness from 0...359 degrees(representing 0%...100%)undefined
CMYKcyan from 0...255 (representing 100%...0%)magenta from 0...255(representing 100%...0%)yellow from 0...255(representing 100%...0%)black from 0...255(representing 100%...0%)
HSLhue from 0...359 degreessaturation from 0...359 degrees(representing 0%...100%)luminance from 0...359 degrees(representing 0%...100%)undefined
LabLuminance from 0...255(representing 0...100)a. chromanance from 0...255 degrees(representing -128...127)b. chromanance from 0...255 degrees(representing -128...127)undefined
Gray Scalegray value from 0...255undefinedundefinedundefined
XYZx value from 0...255Y value from 0...255Z value from 0...255undefined

Prompt string.


The documentation for this struct was generated from the following file: