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
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
>
2019.2
IPaintLayer interface
The main interface for Layer class
Syntax:
class
IPaintLayer
{}
Properties:
Name
Description
Active
Returns whether the layer is active
Application
Returns the application to which the object belongs
ClipToParent
Returns or sets whether to clip the pixels of a child layer to the shape of its parent layer
Grouped
Returns whether the layer is grouped
LayerGroup
Returns a value associated with a grouped layer range
MergeMode
Returns or sets the merge mode in a layer
Name
Returns or sets the name the specified layer
ObjectLayer
Returns a value associated with the object layer
Opacity
Returns or sets the opacity of the selected layer(s)
Parent
Returns the parent document object
ParentGroup
Returns this object's parent group
PositionX
Returns or sets the horizontal position of a layer's center
PositionY
Returns or sets the vertical position of a layer's center
Selected
Returns or sets whether the layer is selected
SizeHeight
Returns or sets the height of a layer
SizeWidth
Returns or sets the width of a layer
Type
Returns the type of the layer
URLAddress
Returns or sets the web address associated with a URL region in a layer
URLComment
Returns or sets a string value that describes a URL region in a layer
URLRegion
Returns or sets the type of URL region in a layer
Visible
Returns or sets the visibility status of the layer
ZOrder
Gets or sets the zorder of the layer
Methods:
Name
Description
Activate
Makes this layer the active one
AffineDistort
Distorts the layer
AlignToDocument
Sets the alignment of the layer, according to the alignment type in the document
AlignToDocumentCenter
Aligns a layer to the center of a document
AlignToGrid
Aligns the active layer to the grid
AlignToLayer
Aligns the active layer to another layer
AlignToLayerRange
Aligns the active layer to a range of layers
AlignToPoint
Aligns the active layer to a specified point
Copy
Copies the layer
CreateFloater
Sets whether to create a floating selection in the active layer
CreateMask
Creates a mask on the layer
CreatePalette
Creates a new color palette from the colors used in the layer
CreateSelection
Selects this layer only
CropToMask
Specifies whether to crop a layer's image around a mask
Cut
Cuts the layer
Delete
Deletes the selected layer(s)
Distort
Distorts the shape of the selected layer
Duplicate
Duplicates the selected layer(s). The new layers are placed in front of existing layers and remain selected. The original layers are deselected
Feather
Feathers the edges of the selected layer(s)
Flip
Flips the layer
GetPosition
Returns the center point of the layer
GetSize
Returns the width and height of a layer
IsInFrontOf
Returns or sets whether a layer is in front of a specified layer in the stacking order
Merge
Merges the selected layer(s) or all layers with the background. The layers(s) become(s) part of the image and cannot be selected again.
Move
Moves the layer a specified distance from its original location
MoveToGroup
Adds the object to specified group, before the layer at the specified position. Use 0 to move to the end of the group.
OrderBackOf
Sets the stacking order of the layer by moving it to the back of a specified layer in the stacking order
OrderBackOne
Sets the stacking order of the layer by moving it back one in the stacking order
OrderForwardOne
Sets the stacking order of the layer by moving it forward one in the stacking order
OrderFrontOf
Sets the stacking order of the layer by moving it to the front of a specified layer in the stacking order
OrderToBack
Sets the stacking order of the layer by moving it to the back of the stacking order
OrderToFront
Sets the stacking order of the layer by moving it to the front of the stacking order
PasteFloater
Sets whether to paste a selection as a floater selection on the layer
Rotate
Rotates the selected layer(s) by the specified angle, around the given rotation point
SetPosition
Sets the center point of the layer
SetSize
Sets the width and height of the layer
Skew
Skews the selected layer(s)
Stretch
Stretches the selected layer(s)
Threshold
Alters the edges of mask selections or objects by removing the smooth transition between a selection, or a layer, and the underlying image
Ungroup
Breaks up the selected group into its individual objects
UngroupAll
Removes the grouping feature from all nested groups of the layer
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