![]() | InDesign SDK 20.5 |
#include <ISpectrumData.h>

Public Types | |
| enum | LocationType { kNotInSpectrumBar, kInColorBar, kInMinSwatch, kInMaxSwatch } |
Public Member Functions | |
| virtual void | InitializeTables (const int32 colorspace, const int16 width, const int16 height, bool16 doHiRes, bool16 doBWSwatch)=0 |
| virtual void | InitializeTransition (const int32 colorspace, const ColorArray &components, const int16 width, const int16 height, bool16 doHiRes, bool16 doBWSwatch)=0 |
| virtual uint8 * | GetTable1 () const =0 |
| virtual uint8 * | GetTable2 () const =0 |
| virtual ColorArray | MapPositionToColor (const PMPoint &where, bool16 wantTransitionFract=kTrue)=0 |
| virtual LocationType | MapPositionToLocation (const PMPoint &where)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
A data interface for the color bar widget in the color picker panel.
LocationType specfies where the click occurred in the color bar.
| pure virtual |
Returns the pointer to Table1
| pure virtual |
Returns the pointer to Table2
| pure virtual |
Initialize two tables internally required to setup the default color bar bitmap. Four color spaces are suppported: CMYK, RGB, LAB, and Grayscale. Table1 contains the ramps column-wise. Table2 contains the ramps row-wise.
| colorspace | specifies the color space to set up the tables for. |
| width | specifies the pixel width of the table. |
| height | specifies the pixel height of the table. |
| doHiRes | whether or not we are operating in hi-res mode (affects position-to-color calculations). |
| doBWSwatch | is true if color bar setup includes the minimum and maximum swatch proxy. |
| pure virtual |
Initialize the transition table internally required to setup the tint transition.
| colorspace | specifies the color space to set up the transition table for. |
| components | specifies the color values for the transition table. |
| width | specifies the pixel width of the transition table. |
| height | specifies the pixel height of the transition table. |
| doHiRes | whether or not we are operating in hi-res mode (affects position-to-color calculations). |
| doBWSwatch | is true if color bar setup includes the minimum and maximum swatch proxy. |
| pure virtual |
Map a position in the color bar to a color value represented by the point.
| where | specifies the point in the color bar. |
| wantTransitionFract | is true if mapping for transition table. |
| pure virtual |
Map a position in the color bar to location type represented by the point.
| where | specifies the point in the color bar. |