API  0.9.10
CGColorSpace.j File Reference

Go to the source code of this file.

Macros

#define STANDARDIZE(components, index, minimum, maximum, multiplier)
 

Typedefs

typedef CGColorSpace kCGColorSpaceModelUnknown = -1
 

Functions

function CGColorSpaceCopyICCProfile (aColorSpace)
 
function CGColorSpaceCreateCalibratedGray (aWhitePoint, aBlackPoint, gamma)
 
function CGColorSpaceCreateCalibratedRGB (aWhitePoint, aBlackPoint, gamma)
 
function CGColorSpaceCreateDeviceCMYK ()
 
function CGColorSpaceCreateDeviceGray ()
 
function CGColorSpaceCreateDeviceRGB ()
 
function CGColorSpaceCreateICCBased (aComponentCount, range, profile, alternate)
 
function CGColorSpaceCreateIndexed (aBaseColorSpace, lastIndex, colorTable)
 
function CGColorSpaceCreateLab (aWhitePoint, aBlackPoint, aRange)
 
function CGColorSpaceCreatePattern (aBaseColorSpace)
 
function CGColorSpaceCreateWithName (aName)
 
function CGColorSpaceCreateWithPlatformColorSpace ()
 
function CGColorSpaceGetBaseColorSpace (aColorSpace)
 
function CGColorSpaceGetColorTable (aColorSpace)
 
function CGColorSpaceGetColorTableCount (aColorSpace)
 
function CGColorSpaceGetModel (aColorSpace)
 
function CGColorSpaceGetNumberOfComponents (aColorSpace)
 
function CGColorSpaceGetTypeID (aColorSpace)
 
function CGColorSpaceRelease (aColorSpace)
 
function CGColorSpaceRetain (aColorSpace)
 
function CGColorSpaceStandardizeComponents (aColorSpace, components)
 

Variables

 kCGColorSpaceAdobeRGB1998 = "CGColorSpaceAdobeRGB1998"
 
 kCGColorSpaceGenericCMYK = "CGColorSpaceGenericCMYK"
 
 kCGColorSpaceGenericGray = "CGColorSpaceGenericGray"
 
 kCGColorSpaceGenericRGB = "CGColorSpaceGenericRGB"
 
 kCGColorSpaceGenericRGBHDR = "CGColorSpaceGenericRGBHDR"
 
 kCGColorSpaceGenericRGBLinear = "CGColorSpaceGenericRGBLinear"
 
 kCGColorSpaceModelCMYK = 2
 
 kCGColorSpaceModelDeviceN = 4
 
 kCGColorSpaceModelIndexed = 5
 
 kCGColorSpaceModelLab = 3
 
 kCGColorSpaceModelMonochrome = 0
 
 kCGColorSpaceModelPattern = 6
 
 kCGColorSpaceModelRGB = 1
 
 kCGColorSpaceSRGB = "CGColorSpaceSRGB"
 

Macro Definition Documentation

◆ STANDARDIZE

#define STANDARDIZE (   components,
  index,
  minimum,
  maximum,
  multiplier 
)
Value:
{ \
if (index > components.length) \
{ \
components[index] = maximum; \
return; \
} \
\
var component = components[index]; \
if (component < minimum) \
components[index] = minimum; \
else if (component > maximum) \
components[index] = maximum; \
else \
components[index] = ROUND(component * multiplier) / multiplier; \
}
if(CPFeatureIsCompatible(CPHTMLCanvasFeature))

Definition at line 211 of file CGColorSpace.j.

Typedef Documentation

◆ kCGColorSpaceModelUnknown

typedef CGColorSpace kCGColorSpaceModelUnknown = -1

Definition at line 25 of file CGColorSpace.j.

Function Documentation

◆ CGColorSpaceCopyICCProfile()

function CGColorSpaceCopyICCProfile ( aColorSpace  )

Definition at line 168 of file CGColorSpace.j.

◆ CGColorSpaceCreateCalibratedGray()

function CGColorSpaceCreateCalibratedGray ( aWhitePoint  ,
aBlackPoint  ,
gamma   
)

Definition at line 75 of file CGColorSpace.j.

◆ CGColorSpaceCreateCalibratedRGB()

function CGColorSpaceCreateCalibratedRGB ( aWhitePoint  ,
aBlackPoint  ,
gamma   
)

Definition at line 80 of file CGColorSpace.j.

◆ CGColorSpaceCreateDeviceCMYK()

function CGColorSpaceCreateDeviceCMYK ( )

Definition at line 97 of file CGColorSpace.j.

◆ CGColorSpaceCreateDeviceGray()

function CGColorSpaceCreateDeviceGray ( )

Definition at line 102 of file CGColorSpace.j.

◆ CGColorSpaceCreateDeviceRGB()

function CGColorSpaceCreateDeviceRGB ( )

Definition at line 107 of file CGColorSpace.j.

◆ CGColorSpaceCreateICCBased()

function CGColorSpaceCreateICCBased ( aComponentCount  ,
range  ,
profile  ,
alternate   
)

Definition at line 85 of file CGColorSpace.j.

◆ CGColorSpaceCreateIndexed()

function CGColorSpaceCreateIndexed ( aBaseColorSpace  ,
lastIndex  ,
colorTable   
)

Definition at line 118 of file CGColorSpace.j.

◆ CGColorSpaceCreateLab()

function CGColorSpaceCreateLab ( aWhitePoint  ,
aBlackPoint  ,
aRange   
)

Definition at line 91 of file CGColorSpace.j.

◆ CGColorSpaceCreatePattern()

function CGColorSpaceCreatePattern ( aBaseColorSpace  )

Definition at line 124 of file CGColorSpace.j.

◆ CGColorSpaceCreateWithName()

function CGColorSpaceCreateWithName ( aName  )

Definition at line 132 of file CGColorSpace.j.

◆ CGColorSpaceCreateWithPlatformColorSpace()

function CGColorSpaceCreateWithPlatformColorSpace ( )

Definition at line 112 of file CGColorSpace.j.

◆ CGColorSpaceGetBaseColorSpace()

function CGColorSpaceGetBaseColorSpace ( aColorSpace  )

Definition at line 187 of file CGColorSpace.j.

◆ CGColorSpaceGetColorTable()

function CGColorSpaceGetColorTable ( aColorSpace  )

Definition at line 195 of file CGColorSpace.j.

◆ CGColorSpaceGetColorTableCount()

function CGColorSpaceGetColorTableCount ( aColorSpace  )

Definition at line 191 of file CGColorSpace.j.

◆ CGColorSpaceGetModel()

function CGColorSpaceGetModel ( aColorSpace  )

Definition at line 182 of file CGColorSpace.j.

◆ CGColorSpaceGetNumberOfComponents()

function CGColorSpaceGetNumberOfComponents ( aColorSpace  )

Definition at line 173 of file CGColorSpace.j.

◆ CGColorSpaceGetTypeID()

function CGColorSpaceGetTypeID ( aColorSpace  )

Definition at line 178 of file CGColorSpace.j.

◆ CGColorSpaceRelease()

function CGColorSpaceRelease ( aColorSpace  )

Definition at line 201 of file CGColorSpace.j.

◆ CGColorSpaceRetain()

function CGColorSpaceRetain ( aColorSpace  )

Definition at line 205 of file CGColorSpace.j.

◆ CGColorSpaceStandardizeComponents()

function CGColorSpaceStandardizeComponents ( aColorSpace  ,
components   
)

Definition at line 229 of file CGColorSpace.j.

Variable Documentation

◆ kCGColorSpaceAdobeRGB1998

kCGColorSpaceAdobeRGB1998 = "CGColorSpaceAdobeRGB1998"

Definition at line 63 of file CGColorSpace.j.

◆ kCGColorSpaceGenericCMYK

kCGColorSpaceGenericCMYK = "CGColorSpaceGenericCMYK"

Definition at line 48 of file CGColorSpace.j.

◆ kCGColorSpaceGenericGray

kCGColorSpaceGenericGray = "CGColorSpaceGenericGray"

Definition at line 38 of file CGColorSpace.j.

◆ kCGColorSpaceGenericRGB

kCGColorSpaceGenericRGB = "CGColorSpaceGenericRGB"

Definition at line 43 of file CGColorSpace.j.

◆ kCGColorSpaceGenericRGBHDR

kCGColorSpaceGenericRGBHDR = "CGColorSpaceGenericRGBHDR"

Definition at line 58 of file CGColorSpace.j.

◆ kCGColorSpaceGenericRGBLinear

kCGColorSpaceGenericRGBLinear = "CGColorSpaceGenericRGBLinear"

Definition at line 53 of file CGColorSpace.j.

◆ kCGColorSpaceModelCMYK

kCGColorSpaceModelCMYK = 2

Definition at line 28 of file CGColorSpace.j.

◆ kCGColorSpaceModelDeviceN

kCGColorSpaceModelDeviceN = 4

Definition at line 30 of file CGColorSpace.j.

◆ kCGColorSpaceModelIndexed

kCGColorSpaceModelIndexed = 5

Definition at line 31 of file CGColorSpace.j.

◆ kCGColorSpaceModelLab

kCGColorSpaceModelLab = 3

Definition at line 29 of file CGColorSpace.j.

◆ kCGColorSpaceModelMonochrome

kCGColorSpaceModelMonochrome = 0

Definition at line 26 of file CGColorSpace.j.

◆ kCGColorSpaceModelPattern

kCGColorSpaceModelPattern = 6

Definition at line 32 of file CGColorSpace.j.

◆ kCGColorSpaceModelRGB

kCGColorSpaceModelRGB = 1

Definition at line 27 of file CGColorSpace.j.

◆ kCGColorSpaceSRGB

kCGColorSpaceSRGB = "CGColorSpaceSRGB"

Definition at line 68 of file CGColorSpace.j.