ColorSpaceType
Color space types.
Definition c_color.h:28
@ ColorSpace_DeviceRGB
DeviceRGB color space (3 components)
Definition c_color.h:42
@ ColorSpace_DeviceGray
DeviceGray color space (1 component)
Definition c_color.h:37
@ ColorSpace_DeviceCMYK
DeviceCMYK color space (4 components)
Definition c_color.h:47
@ ColorSpace_Transparent
Transparent (no color)
Definition c_color.h:32
This file contains macro declarations for importing and exporting symbols from library boundaries.
This file contains all type forward declarations returned by the library API.
This file contains types and constants used as parameters or return values.
Represents a color value for annotations and other PDF elements.
error_type CALLING_CONVENTION Color_FromUnknown(IUnknownHandle *handle, ColorHandle **result)
Convert IUnknownHandle to ColorHandle.
error_type CALLING_CONVENTION Color_ToUnknown(ColorHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.
error_type CALLING_CONVENTION Color_GetRed(ColorHandle *handle, real_type *result)
Get the red component (for RGB colors)
error_type CALLING_CONVENTION Color_GetBlack(ColorHandle *handle, real_type *result)
Get the black component (for CMYK colors)
error_type CALLING_CONVENTION Color_GetGreen(ColorHandle *handle, real_type *result)
Get the green component (for RGB colors)
error_type CALLING_CONVENTION Color_GetYellow(ColorHandle *handle, real_type *result)
Get the yellow component (for CMYK colors)
error_type CALLING_CONVENTION Color_CreateCMYK(real_type cyan, real_type magenta, real_type yellow, real_type black, ColorHandle **result)
Create a CMYK color.
error_type CALLING_CONVENTION Color_CreateRGB(real_type red, real_type green, real_type blue, ColorHandle **result)
Create an RGB color.
error_type CALLING_CONVENTION Color_CreateTransparent(ColorHandle **result)
Create a transparent color (no color)
error_type CALLING_CONVENTION Color_GetMagenta(ColorHandle *handle, real_type *result)
Get the magenta component (for CMYK colors)
error_type CALLING_CONVENTION Color_Release(ColorHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION Color_CreateGray(real_type gray, ColorHandle **result)
Create a grayscale color.
error_type CALLING_CONVENTION Color_GetColorSpace(ColorHandle *handle, ColorSpaceType *result)
Get the color space type.
error_type CALLING_CONVENTION Color_GetGray(ColorHandle *handle, real_type *result)
Get the gray component (for grayscale colors)
error_type CALLING_CONVENTION Color_GetCyan(ColorHandle *handle, real_type *result)
Get the cyan component (for CMYK colors)
error_type CALLING_CONVENTION Color_GetBlue(ColorHandle *handle, real_type *result)
Get the blue component (for RGB colors)
Base class for reference counting.
uint32_t error_type
This is return value type of all API functions.
Definition c_types.h:25
double real_type
Floating point values.
Definition c_types.h:41