PIColorSpaceSuite.h File Reference


Detailed Description

Photoshop ColorSpace Suite for Plug-ins.

Distribution: PUBLIC

#include "PIGeneral.h"

Go to the source code of this file.


Data Structures

struct  CS_XYZColor
 Color values for the XYZ color space. More...
struct  PSColorSpaceSuite1
 The set of routines available in the Color Space suite. More...

Defines

#define kPSColorSpaceSuite   "Photoshop ColorSpace Suite for Plug-ins"
 Unique identifier for the Color Space Suite.
#define kPSColorSpaceSuiteVersion1   1
 Color Space Suite, Version 1.

Typedefs

typedef Color_T * ColorID
 Identifier for the Color Space.
typedef unsigned char Color8 [4]
 Representation of 8-bit color. Representation of 16-bit color.
typedef unsigned short Color16 [4]
 Representation of 32-bit color.
typedef float Color32 [4]
typedef SPAPI SPErr(*) ColorSpace_Make (ColorID *id)
 Makes a new color space.
typedef SPAPI SPErr(*) ColorSpace_Delete (ColorID *id)
 Deletes a color space.
typedef SPAPI SPErr(*) ColorSpace_StuffComponents (ColorID id, short colorSpace, unsigned char component0, unsigned char component1, unsigned char component2, unsigned char component3)
 Puts four color components into a Color Space given a type of color space.
typedef SPAPI SPErr(*) ColorSpace_ExtractComponents (ColorID id, short colorSpace, unsigned char *component0, unsigned char *component1, unsigned char *component2, unsigned char *component3, Boolean *gamutFlag)
 Extracts four color components from a Color Space given a type of color space.
typedef SPAPI SPErr(*) ColorSpace_StuffXYZ (ColorID id, CS_XYZColor xyz)
 Puts XYZ color components into a Color Space.
typedef SPAPI SPErr(*) ColorSpace_ExtractXYZ (ColorID id, CS_XYZColor *xyz)
 Extracts XYZ color components from a Color Space.
typedef SPAPI SPErr(*) ColorSpace_GetNativeSpace (ColorID id, short *colorSpace)
 Gets the native type of color space from a Color Space.
typedef SPAPI SPErr(*) ColorSpace_Convert8 (short inputCSpace, short outputCSpace, Color8 *colorArray, short count)
 Converts between two color spaces, with 8-bit color.
typedef SPAPI SPErr(*) ColorSpace_Convert16 (short inputCSpace, short outputCSpace, Color16 *colorArray, short count)
 Converts between two color spaces, with 16-bit color.
typedef SPAPI SPErr(*) ColorSpace_IsBookColor (ColorID id, Boolean *isBookColor)
 Determines whether the color space associated with ColorID contains a book color.
typedef SPAPI SPErr(*) ColorSpace_ExtractColorName (ColorID id, ASZString *colorName)
 Extracts the name of the color in a color space.
typedef SPAPI SPErr(*) ColorSpace_PickColor (ColorID *id, ASZString promptString)
 Picks a color using the Color Picker.
typedef SPAPI SPErr(*) ColorSpace_Convert8to16 (unsigned char *input_data, unsigned short *output_data, short count)
 Converts 8- to 16-bit color.
typedef SPAPI SPErr(*) ColorSpace_Convert16to8 (unsigned short *input_data, unsigned char *output_data, short count)
 Converts 16- to 18-bit color.
typedef SPAPI SPErr(*) ColorSpace_ConvertToMonitorRGB (short inputCSpace, Color8 *input_data, Color8 *output_data, short count)
 Converts color from inputCSpace to monitor RGB.
typedef SPAPI SPErr(*) ColorSpace_Convert32to8 (float *input_data, unsigned char *output_data, short count)
 Converts 32- to 8-bit color.