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] |
RGB | red from 0...255 | green from 0...255 | blue from 0...255 | undefined |
HSB | hue from 0...359 degrees | saturation from 0...359 degrees (representing 0%...100%) | brightness from 0...359 degrees(representing 0%...100%) | undefined |
CMYK | cyan 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%) |
HSL | hue from 0...359 degrees | saturation from 0...359 degrees(representing 0%...100%) | luminance from 0...359 degrees(representing 0%...100%) | undefined |
Lab | Luminance 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 Scale | gray value from 0...255 | undefined | undefined | undefined |
XYZ | x value from 0...255 | Y value from 0...255 | Z value from 0...255 | undefined |
The documentation for this struct was generated from the following file: