API Documentation > CorelDRAW > 2025-v26
IVGColor interface
The main interface for Color class
Syntax:
Interface IVGColor
Properties:
Name Description
Application Gets the application to which the object belongs
BW Gets or sets Black and White state
CMYCyan Gets or sets the CMY Cyan color value
CMYKBlack Gets or sets the CMYK Black color value
CMYKCyan Gets or sets the CMYK Cyan color value
CMYKMagenta Gets or sets the CMYK Magenta color value
CMYKYellow Gets or sets the CMYK Yellow color value
CMYMagenta Gets or sets the CMY Magenta color value
CMYYellow Gets or sets the CMY Yellow color value
ColorContext Returns a read-only color context associated with this color object
ColorStyleName Returns the name of the color style or an empty if the color is not a color style
Gray Gets or sets the Gray value
HexValue Gets or sets the web-compatible RGB value of the color as a hexadecimal string
HLSHue Gets or sets the HLS Hue value
HLSLightness Gets or sets the HLS Lightness value
HLSSaturation Gets or sets the HLS Saturation value
HSBBrightness Gets or sets the HSB Brightness value
HSBHue Gets or sets the HSB Hue value
HSBSaturation Gets or sets the HSB Saturation value
InGamutColor Returns the corrected color to be within the current printer gamut
IsCMYK Returns True if the color is CMYK
IsColorStyle Returns true if the color is a color style
IsGray Returns True if the color has only black component
IsInGamut Returns True if the color is within the current printer gamut
IsSpot Returns True if the color is a spot color
IsTintable Returns True if the color can have tints
IsValidDuotoneColor Returns True if the color can be used in duotones
IsWhite Returns True if the color is white
LabComponentA Gets or sets the LAB A color value
LabComponentB Gets or sets the LAB B color value
LabLuminance Gets or sets the LAB L color value
Name Gets color name
Palette Returns a palette this color is obtained from, if one exists
PaletteIdentifier Returns a unique identifier of the palette this color is obtained from
Parent Gets the parent of which this object is a child
RGBBlue Gets or sets the RGB Blue color value
RGBGreen Gets or sets the RGB Green color value
RGBRed Gets or sets the RGB Red color value
RGBValue Specifies the RGB color value as a single integer
SpotColorID Gets or sets the color ID that identifies a spot color within its corresponding palette
SpotColorName Returns the name of the spot color this color is derived from
Tint Gets or sets the Fixed Palette Color's Tint
Type Gets color type
ValidDuotoneColor Returns the corrected color to be used in duotones
YIQChromaI Gets or sets the YIQ I color value
YIQChromaQ Gets or sets the YIQ Q color value
YIQLuminanceY Gets or sets the YIQ Y color value
Methods:
Name Description
BlendWith Mixes the color with the given color using the specified ratio
BWAssign Assigns a Black and White color model; Only accepts a boolean
CMYAssign Assigns the CMY color model
CMYKAssign Assigns the CMYK color model
ConvertTo Converts the color to a given color type. Optionally the source and or destination color context could be specified. Returns True if the color conversion has been performed
ConvertToBW Converts the color model to Black and White
ConvertToCMY Converts the color model to CMY
ConvertToCMYK Converts the color model to CMYK
ConvertToGray Converts the color model to Grayscale
ConvertToHLS Converts the color model to HLS
ConvertToHSB Converts the color model to HSB
ConvertToLab Converts the color model to LAB
ConvertToPalette Finds the matching color from the specified palette
ConvertToRGB Converts the color model to RGB
ConvertToYIQ Converts the color model to YIQ
CopyAppearance Copies one color into another and converts the color values into the destination color's color context. The optional source color context could be used to override source color's color context
CopyAssign Copies color model assignment
CorelScriptAssign Assigns a color object based on Corel SCRIPT color specification values
CorelScriptGetComponent Gets Corel SCRIPT values from a color object for use in Corel SCRIPT
GetColorDistanceFrom Returns a relative measurement of distance between two colors in a color space
GetCopy Creates a new color objects using a copy of the color information
GrayAssign Assigns the Grayscale color model
HLSAssign Assigns the HLS color model
HSBAssign Assigns the HSB color model
Invalidate Clears the color to an invalid state
IsSame Returns True if the two colors are of the same color model, with equal color values
LabAssign Assigns the LAB color model
ModifyColorStyleColor Modifies the color or the color style, all objects referencing the color style will be updated
PaletteAssign Assigns a color from a specific palette
RegistrationAssign Assigns the Registration color model
RGBAssign Assigns the RGB color model
SetName Assigns a name to an unnamed color
SpotAssign Assigns a spot color from a given palette
SpotAssignByName Assigns a spot color from a given palette by name
StringAssign Decodes a string into color information
ToString Returns color information encoded into a string
UserAssign Brings up the Color dialog to allow the user to assign a color
UserAssignEx Brings up the Color dialog to allow the user to assign a color
YIQAssign Assigns the YIQ color model