CorelDRAW Community
Site
Search
User
Site
Search
User
Developer Area
Forums
Wikis
API References
Tags
More
Cancel
New
Developer Area requires membership for participation - click to join
Applications:
Corel DESIGNER
Corel PHOTO-PAINT
CorelDRAW
Versions:
CorelDRAW 2017
CorelDRAW 2018
CorelDRAW 2019
CorelDRAW 2019.2
CorelDRAW 2020
CorelDRAW 2020.1
CorelDRAW 2021
CorelDRAW 2021.5
CorelDRAW 2022-v24
CorelDRAW 2022-v24.1
CorelDRAW 2022-v24.2
CorelDRAW 2023-v24.3
CorelDRAW 2023-v24.5
CorelDRAW 2024-v25
CorelDRAW X7
CorelDRAW X7.4
CorelDRAW X7.6
CorelDRAW X8
Classes:
ActiveView
AIExport
Application
AppStatus
AppWindow
ArrowHead
ArrowHeadOptions
ArrowHeads
BBoxSnapPoint
Bitmap
BitmapImage
BMPExport
BSpline
BSplineControlPoint
BSplineControlPoints
CalloutShape
CEPSExport
CGMExport
CGMImport
Clipboard
CloneLink
Color
ColorContext
ColorManagementPolicy
ColorManager
ColorProfile
ColorProfiles
Colors
CommandBar
CommandBarMode
CommandBarModes
CommandBars
Component
Components
Connector
Control
Controls
CorelScriptTools
CrossPoint
CrossPoints
Curve
CustomEffect
CustomShape
DataContext
DataField
DataFields
DataItem
DataItems
DataSourceProxy
Dimension
DimensionAngular
DimensionLinear
DockHost
DockHosts
DockItem
DockItems
Document
Documents
DSFImport
Duotone
DuotoneInk
DuotoneOverprint
DXFExport
DXFImport
EdgeSnapPoint
Effect
EffectBevel
EffectBlend
EffectContour
EffectControlPath
EffectCustomDistortion
EffectDistortion
EffectDropShadow
EffectEnvelope
EffectExtrude
EffectInnerShadow
EffectLens
EffectPerspective
EffectPushPullDistortion
Effects
EffectTextOnPath
EffectTwisterDistortion
EffectZipperDistortion
Ellipse
EMFExport
EPS
ExportFilter
ExtrudeVanishingPoint
Fill
FillMetadata
FontList
FountainColor
FountainColors
FountainFill
FrameWindow
FrameWindows
FrameWork
GEMExport
GIFExport
GlobalMacroStorage
GMSMacro
GMSMacros
GMSManager
GMSProject
GMSProjects
Grid
Guide
HatchFill
HatchFills
HatchLibraries
HatchLibrary
HatchPattern
HatchPatterns
HPGLExport
HPGLImport
Image
ImageList
ImageTile
ImageTiles
ImportFilter
JP2Export
JPGExport
Layer
Layers
LocalizableString
MathUtils
Metadata
Node
NodeRange
Nodes
ObjectSnapPoint
OLE
OnScreenCurve
OnScreenHandle
OnScreenText
Outline
OutlineStyle
OutlineStyles
Page
Pages
PageSize
PageSizes
Palette
PaletteManager
Palettes
PatternCanvas
PatternCanvases
PatternFill
PDFVBASettings
PNGExport
Point
PointRange
Polygon
PostScriptFill
PowerClip
PrintDocuments
Printer
PrintJob
PrintLayout
PrintOptions
PrintPages
PrintPostScript
PrintPrepress
PrintSeparations
PrintSettings
PrintTrapping
ProofColorSettings
Properties
PSScreenOptions
RecentFile
RecentFiles
Rect
Rectangle
Rulers
ScreenRect
Segment
SegmentRange
Segments
SelectionInfo
SeparationPlate
SeparationPlates
Shape
ShapeRange
Shapes
SnapPoint
SnapPointRange
SnapPoints
Spread
Spreads
StatusText
StructAlignProperties
StructColorConversionOptions
StructCreateOptions
StructExportOptions
StructFontProperties
StructHyphenationSettings
StructImportCropOptions
StructImportOptions
StructImportResampleOptions
StructOpenOptions
StructPaletteOptions
StructPasteOptions
StructSaveAsOptions
StructSpaceProperties
Style
StyleCharacter
StyleFill
StyleFrame
StyleOutline
StyleParagraph
Styles
StyleSheet
StyleTransparency
SubPath
SubPaths
SVGExport
Symbol
SymbolDefinition
SymbolDefinitions
SymbolLibraries
SymbolLibrary
SystemPrinters
TableBorders
TableCell
TableCellRange
TableCells
TableColumn
TableColumns
TableRow
TableRows
TableShape
Text
TextCharacters
TextColumns
TextFrame
TextFrames
TextIndentLevelStyle
TextIndentLevelStyles
TextLines
TextParagraphs
TextRange
TextRanges
TextTabPosition
TextTabPositions
TextureFill
TextureFillProperties
TextureFillProperty
TextVariableAxes
TextVariableAxis
TextWords
TGAExport
ToolShape
ToolShapeAttributes
ToolState
ToolStateAttributes
TraceSettings
TransformMatrix
Transparency
TrapLayer
TrapLayers
TreeManager
TreeNode
TreeNodes
URL
UserSnapPoint
Vector
View
ViewHost
ViewHosts
Views
ViewWindow
ViewWindows
WEBPExport
Window
Windows
WMFExport
Workspace
Workspaces
WPGExport
Interfaces:
IColorConversionHandler
ICUIAutomation
ICUIBackgroundTask
ICUIControlData
ICUIDataSourceFactory
ICUIRunningBackgroundTask
ICUIRunningTask
ICUITask
ICUITaskManager
ICUIWarning
IFilterSettings
IGIFFilterSettings
IImportCropHandler
IImportResampleHandler
IJPGFilterSettings
IPDFSettingsInternal
IPerspectiveGroupProperties
IPerspectiveGroupShape
IPNGFilterSettings
IQuickExport
IQuickExportItem
IQuickExportSettings
IVGApplicationEvents
IVGAppPlugin
IVGComment
IVGCommentAnnotation
IVGCommentAuthor
IVGComments
IVGCommentTarget
IVGCommentThread
IVGCommentThreads
IVGDocumentEvents
IVGDocumentMarkup
IVGPageMarkup
IVGVariableWidthNode
IVGVariableWidthNodes
IWEBPFilterSettings
Enums:
AiVersion
BmpVersion
cdrAddinFilter
cdrAlignDistributeH
cdrAlignDistributeV
cdrAlignment
cdrAlignShapesTo
cdrAlignType
cdrAntiAliasingType
cdrApplicationClass
cdrApplicationID
cdrAppStartupMode
cdrAuthorAuthentication
cdrBevelMode
cdrBevelType
cdrBlendMode
cdrCalloutEnding
cdrCalloutHaloJustify
cdrCalloutTextSource
cdrCGMRegionType
cdrCloneLinkType
cdrColorMode
cdrColorSettings
cdrColorType
cdrCommandCheckState
cdrCommentAnnotationType
cdrCommentStatus
cdrCommentType
cdrCompareCondition
cdrCompareType
cdrCompressionType
cdrConnectorType
cdrContourCornerType
cdrContourDirection
cdrContourEndCapType
cdrCopyProperties
cdrCornerType
cdrCursorShape
cdrCurveElementFlags
cdrCurveElementType
cdrDataFormatType
cdrDataType
cdrDimensionAngularUnits
cdrDimensionLinearUnits
cdrDimensionPlacement
cdrDimensionStyle
cdrDimensionSymbol
cdrDimensionType
cdrDirection
cdrDistanceMode
cdrDistortionType
cdrDistributeArea
cdrDistributeType
cdrDitherType
cdrDocLayout
cdrDropShadowType
cdrDuotoneType
cdrEdgeType
cdrEffectType
cdrEllipseType
cdrEnvelopeCopyMode
cdrEnvelopeMode
cdrExportRange
cdrExtrudeLightPosition
cdrExtrudeShading
cdrExtrudeType
cdrExtrudeVPType
cdrFeatherType
cdrFileVersion
cdrFillMode
cdrFillStyleType
cdrFillType
cdrFilter
cdrFittedOrientation
cdrFittedPlacement
cdrFittedQuadrant
cdrFittedVertPlacement
cdrFlipAxes
cdrFontCase
cdrFontLine
cdrFontPosition
cdrFontStyle
cdrFountainFillBlendType
cdrFountainFillSpreadMethod
cdrFountainFillType
cdrGridType
cdrGuideType
cdrHalftoneType
cdrImageMode
cdrImagePaletteType
cdrImageType
cdrImportMode
cdrImportTableOutline
cdrImportTextFormatting
cdrLensType
cdrLinearDimensionType
cdrLineSpacingType
cdrMergeMode
cdrMultipageLayout
cdrNodeType
cdrObjectSnapPointType
cdrOLEType
cdrOnScreenCurvePenStyle
cdrOnScreenTextAlign
cdrOutlineDashAdjust
cdrOutlineJustification
cdrOutlineLineCaps
cdrOutlineLineJoin
cdrOutlineType
cdrOverprintState
cdrPageBackground
cdrPageOrientation
cdrPaletteID
cdrPaletteSortMethod
cdrPaletteType
cdrPaletteVersion
cdrPanoseMatchingType
cdrPatternCanvasSize
cdrPatternFillType
cdrPerspPlane
cdrPerspPreset
cdrPointType
cdrPolygonType
cdrPositionOfPointOverShape
cdrPresetPoint
cdrProjectPlane
cdrReferencePoint
cdrRenderType
cdrSegmentOffsetType
cdrSegmentType
cdrShapeChangeScope
cdrShapeEnumDirection
cdrShapeLevel
cdrShapeLinkType
cdrShapeType
cdrSpiralType
cdrSymbolType
cdrTableBorder
cdrTextAlignOrigin
cdrTextChangeCase
cdrTextCharSet
cdrTextEffect
cdrTextFrames
cdrTextIndentLevelStyle
cdrTextIndexingType
cdrTextLanguage
cdrTextPropertySet
cdrTextTabAlignment
cdrTextType
cdrTexturePropertyType
cdrThumbnailSize
cdrTileOffsetType
cdrTools
cdrTraceBackgroundMode
cdrTraceType
cdrTransparencyAppliedTo
cdrTransparencyType
cdrTreeNodeType
cdrTriState
cdrUnit
cdrURLRegion
cdrVerticalAlignment
cdrViewType
cdrWeldFlags
cdrWeldMethod
cdrWindowArrangeStyle
cdrWindowState
cdrWrapStyle
CgmCharsetMode
CgmColorMode
CgmFallbackCode
CgmFileEncoding
CgmFormat
CgmOutputPrecision
CgmTextEncoding
clrColorEngine
clrColorModel
clrColorPolicyAction
clrCompPrnCalibration
clrDeviceType
clrExportColorCorrection
clrImportColorCorrection
clrMonitorCalibration
clrRenderingIntent
cuiBarPosition
cuiBarProtection
cuiBarType
cuiDockHostOrientation
cuiDockItemType
cuiDockOperation
cuiMessageBoxFlags
cuiTaskPriority
cuiWindowState
DsfLinestyle
DxfBitmapType
DxfProjections
DxfScale
DxfUnits
DxfVersion
EpsBBoxType
EpsBitmapType
EpsColorProfile
EpsImageHeader
EpsObjectsColorType
EpsPSLevel
EpsSpotToColorType
EpsTIFFHeaderType
GifTransparency
HpglFillType
Jp2Progression
Jp2Subformat
pdfBitmapCompressionType
pdfColorMode
pdfColorProfile
pdfDisplayOnStart
pdfEditPermissions
pdfEncodingType
pdfEncryptionType
pdfEPSAs
pdfExportRange
pdfPrintPermissions
pdfSpotType
pdfTextExportMode
pdfVersion
pltOriginType
PngTransparency
PrnBitmapColorMode
PrnColorMode
PrnFileMode
PrnImageTrap
PrnObjectsColorMode
PrnPageMatchingMode
PrnPageSet
PrnPaperOrientation
PrnPaperSize
PrnPDFStartup
PrnPlaceType
PrnPlateType
PrnPostScriptLevel
PrnPrintRange
PrnRegistrationStyle
PrnTrapType
SvgBmpExportType
SvgCharacterSubsetting
SvgDrawingPrecision
SvgEncoding
SvgStyling
SvgUnits
SvgVersion
TgaVersion
WpgColorMode
WpgVersion
Structures:
CurveElement
Modules:
UICategories
C++/CLI
C++
C#
JS
VB
VBA
API Documentation
>
CorelDRAW
>
2023-v24.3
Color class
Defines the characteristics of color objects and describes the look and behavior of the collection objects through its properties and methods
Syntax:
Class
Color
Remarks:
The
Color
class defines the characteristics of color objects and describes the look and behavior of the collection objects through its properties and methods.
A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and type of colors that make up an image, and that is used to organize and define colors according to a set of basic properties that can be reproduced. Black-and-white, grayscale, RGB, CMYK, and paletted are examples of popular color modes.
There are many different color models that define colors: HSB, RGB, CMYK, and CIE LAB. The RGB and CMYK color models are only two of a number of models developed to suit a variety of digital design and desktop-publishing applications. It is not necessary to be familiar with all of these models, but it is helpful to be familiar with a few of the more widely used ones.
We all perceive color differently. Color is subjective to the human eye. Each device that interacts with your project's file - the scanner, monitor, and printer - may have a different color space. For example, a color that is visible to the human eye may not be reproducible by your printer.
Because there are so many color variations, a precise method for defining each color is required. For example, when you find the perfect shade of light orange, you need to be able to reproduce that color and possibly tell others how to do the same. A color model defines that perfect shade of light orange by breaking it down into precise components that allow you to accurately transmit the information to other people and to the electronic devices you use to create projects.
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
Version Information:
CorelDRAW:
X7.4
,
X7
,
X7.6
,
X8
,
2017
,
2018
,
2019
,
2019.2
,
2020
,
2021
,
2020.1
,
2021.5
,
2022-v24
,
2022-v24.1
,
2022-v24.2
,
2023-v24.3
,
2023-v24.5
,
2024-v25
Corel DESIGNER:
X7
,
2017.1
,
20.1
,
2019.2
,
2020.1
,
2021.5
,
2022-v24
,
2022-v24.1
,
2022-v24.2
,
2023-v24.3
,
2023-v24.5
,
2024-v25