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:
Corel PHOTO-PAINT 2017
Corel PHOTO-PAINT 2018
Corel PHOTO-PAINT 2019
Corel PHOTO-PAINT 2019.2
Corel PHOTO-PAINT 2020
Corel PHOTO-PAINT 2020.1
Corel PHOTO-PAINT 2021
Corel PHOTO-PAINT 2021.5
Corel PHOTO-PAINT 2022-v24
Corel PHOTO-PAINT 2022-v24.1
Corel PHOTO-PAINT 2022-v24.2
Corel PHOTO-PAINT 2023-v24.3
Corel PHOTO-PAINT 2023-v24.5
Corel PHOTO-PAINT 2024-v25
Corel PHOTO-PAINT X7
Corel PHOTO-PAINT X7.4
Corel PHOTO-PAINT X7.6
Corel PHOTO-PAINT X8
Classes:
AIExport
Application
AppWindow
Background
BitmapImage
BMPExport
CEPSExport
CGMExport
CGMImport
Channel
Channels
Clipboard
ClipMask
Color
ColorMask
ColorMaskColor
ColorMaskColors
Colors
ColorTable
CommandBar
CommandBarMode
CommandBarModes
CommandBars
Control
Controls
CorelScript
CorelScriptFile
CorelScriptTools
DataContext
DataSourceProxy
DockHost
DockHosts
DockItem
DockItems
Document
Documents
DropShadow
DSFImport
DXFExport
DXFImport
EMFExport
ExportFilter
Floater
Frame
Frames
FrameWindow
FrameWindows
FrameWork
GEMExport
GIFExport
Grid
Guide
Guides
HPGLExport
HPGLImport
ImageList
ImportFilter
JP2Export
JPGExport
Layer
LayerGroup
LayerGroupRange
LayerRange
Layers
Mask
ObjectLayer
Palette
Palettes
PDFVBASettings
PNGExport
PrintDocuments
Printer
PrintJob
PrintLayout
PrintOptions
PrintPages
PrintPostScript
PrintPrepress
PrintSeparations
PrintSettings
PrintTrapping
Rulers
ScreenRect
SeparationPlate
SeparationPlates
StatusText
StructImportCropOptions
StructImportOptions
StructImportRasterizeOptions
StructImportResampleOptions
StructPaletteOptions
StructSaveOptions
StructWebSaveOptions
SVGExport
SystemPrinters
TGAExport
Tools
TrapLayer
TrapLayers
ViewHost
ViewHosts
ViewWindow
ViewWindows
Window
Windows
WMFExport
Workspace
Workspaces
WPGExport
WVLExport
Interfaces:
DIGlobalDocumentEvents
ICUIAutomation
ICUIBackgroundTask
ICUIControlData
ICUIDataSourceFactory
ICUIRunningBackgroundTask
ICUIRunningTask
ICUITask
ICUITaskManager
ICUIWarning
IGlobalDocument
IGlobalDocumentEvents
IImportCropHandler
IImportRasterizeHandler
IImportResampleHandler
IPaintDocumentEvents
IPDFSettingsInternal
IPrnVBAPrintDocument
IPrnVBAPrintPage
Enums:
AiVersion
BmpVersion
cdrAlignment
cdrColorType
cdrCompressionType
cdrDitherType
cdrDuotoneType
cdrFilter
cdrFittedOrientation
cdrFittedPlacement
cdrFittedQuadrant
cdrFittedVertPlacement
cdrFlipAxes
cdrHalftoneType
cdrImageMode
cdrImagePaletteType
cdrImageType
cdrImportMode
cdrLineSpacingType
cdrMergeMode
cdrPaletteID
cdrPaletteSortMethod
cdrPaletteType
cdrPatternCanvasSize
cdrPatternFillType
cdrRenderType
cdrTexturePropertyType
cdrTileOffsetType
cdrTransparencyAppliedTo
cdrTransparencyType
cdrUnit
cdrViewType
cdrWebSaveMode
cdrWindowArrangeStyle
cdrWindowState
CgmCharsetMode
CgmColorMode
CgmFallbackCode
CgmFileEncoding
CgmFormat
CgmOutputPrecision
CgmTextEncoding
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
pntAddinFilter
pntAlignType
pntBorderType
pntClipMaskMode
pntColorMaskMode
pntColorMaskType
pntCreationMode
pntDistributeType
pntDropShadowType
pntEdgeType
pntFeatherType
pntFrameBackground
pntFrameReference
pntGuideType
pntLayerType
pntLoadMode
pntMaskBrightnessModel
pntMaskMode
pntMatteType
pntMergeMode
pntSplitMode
pntToleranceMode
pntURLRegion
PrnBitmapColorMode
PrnColorMode
PrnFileMode
PrnImageTrap
PrnObjectsColorMode
PrnPageMatchingMode
PrnPageSet
PrnPaperOrientation
PrnPaperSize
PrnPDFStartup
PrnPlaceType
PrnPlateType
PrnPostScriptLevel
PrnPrintRange
PrnRegistrationStyle
PrnTrapType
SvgBmpExportType
SvgCharacterSubsetting
SvgDrawingPrecision
SvgEncoding
SvgStyling
SvgUnits
SvgVersion
TgaVersion
WiPath
WiSpeed
WpgColorMode
WpgVersion
C++/CLI
C++
C#
JS
VB
VBA
API Documentation
>
Corel PHOTO-PAINT
>
2021.5
>
Application
>
IPaintApplication
Application.CreateColorEx method
Creates a color object based on a color model
Syntax:
Color
^
CreateColorEx
(
int
Model
=
0
,
int
c1
=
0
,
int
c2
=
0
,
int
c3
=
0
,
int
c4
=
0
,
int
c5
=
0
,
int
c6
=
0
,
int
c7
=
0
);
Parameters:
Name
Type
Description
Model
int
c1
int
Specifies the numeric variable that is assigned to the first color component of the selected color model. For example, cyan is the first color component of the CMYK color model. The value is a percentage and can range from
1
to
100
, whereby
100
specifies full saturation.
c2
int
Specifies the numeric variable that is assigned to the second color component of the selected color model. For example, magenta is the second color component of the CMYK color model. The value is a percentage and can range from
1
to
100
, whereby
100
specifies full saturation.
c3
int
Specifies the numeric variable that is assigned to the third color component of the selected color model. For example, yellow is the third color component of the CMYK color model. The value is a percentage and can range from
1
to
100
, whereby
100
specifies full saturation.
c4
int
Specifies the numeric variable that is assigned to the fourth color component of the selected color model. For example, black is the fourth color component of the CMYK color model. The value is a percentage and can range from
1
to
100
, whereby
100
specifies full saturation.
c5
int
Specifies the numeric variable that is assigned to the fifth color component of the selected color model. Even though the most popular color models use only four levels of color saturations, Corel PHOTO-PAINT can create colors by using seven color channels.
c6
int
Specifies the numeric variable that is assigned to the sixth color component of the selected color model. Even though the most popular color models use only four levels of color saturations, Corel PHOTO-PAINT can create colors by using seven color channels.
c7
int
Specifies the numeric variable that is assigned to the seventh color component of the selected color model. Even though the most popular color models use only four levels of color saturations, Corel PHOTO-PAINT can create colors by using seven color channels.
Remarks:
The
CreateColorEx
method creates a new color (or
Color
object) containing the specified color information. This color is added to the active palette.
You must specify the color model and components by passing them in a parameter.
Version Information:
Corel PHOTO-PAINT:
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