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
ICUIControlData
ICUIDataSourceFactory
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
CgmEncoding
CgmFormat
cuiBarPosition
cuiBarProtection
cuiBarType
cuiDockHostOrientation
cuiDockItemType
cuiDockOperation
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#
VB
VBA
API Documentation
>
Corel PHOTO-PAINT
>
X8
>
CorelScript
>
ICorelScript
CorelScript.EffectBumpMap method
Syntax:
Sub
EffectBumpMap
(
ByVal
FileName
As
String
,
ByVal
Mode
As
Long
,
ByVal
TileWidth
As
Long
,
ByVal
TileHeight
As
Long
,
ByVal
Floor
As
Long
,
ByVal
Ceiling
As
Long
,
ByVal
ScaleFactor
As
Long
,
ByVal
Highlight
As
Long
,
ByVal
Invert
As
Boolean
,
ByVal
Smooth
As
Boolean
,
ByVal
AmbientBrightness
As
Long
,
ByVal
AmbientColorModel
As
Long
,
ByVal
AmbientColor1
As
Long
,
ByVal
AmbientColor2
As
Long
,
ByVal
AmbientColor3
As
Long
,
ByVal
AmbientColor4
As
Long
,
ByVal
DirectionalBrightness
As
Long
,
ByVal
DirectionalColorModel
As
Long
,
ByVal
DirectionalColor1
As
Long
,
ByVal
DirectionalColor2
As
Long
,
ByVal
DirectionalColor3
As
Long
,
ByVal
DirectionalColor4
As
Long
,
ByVal
Direction
As
Long
,
ByVal
Declination
As
Long
)
Parameters:
Name
Type
Description
FileName
String
Specifies the name of the file
Mode
Long
Specifies the mode:
TileWidth
Long
Specifies the width of each tile to stretch the bump map. A value of
0
automatically uses the width of the bump map.
TileHeight
Long
Specifies the height of each tile to stretch the bump map. A value of
0
automatically uses the height of the bumpmap.
Floor
Long
Specifies the minimum value allowed in the bump map, clipping all values below this amount. Valid values range from
0
to
255
.
Ceiling
Long
Specifies the maximum value allowed in the bump map, clipping all values above this amount. Valid values range from
0
to
255
.
ScaleFactor
Long
Specifies the percentage by which to scale the values in the bump map. Valid values range from
0
to
200
.
Highlight
Long
Specifies the amount of specular highlight. Valid values range from
0
to
100
; low values simulate a dull surface, while high values simulate a shiny surface.
Invert
Boolean
Specifies whether to invert the bump-map values:
Smooth
Boolean
Specifies whether to blur the bump map:
AmbientBrightness
Long
Specifies the brightness of the ambient light, which comes from all directions and illuminates all pixels equally (regardless of their surface gradients). Valid values range from
0
to
100
.
AmbientColorModel
Long
Specifies the color model to use for the ambient light:
AmbientColor1
Long
Specifies the first color component of the ambient light. Valid values range from
0
to
255
.
AmbientColor2
Long
Specifies the second color component of the ambient light. Valid values range from
0
to
255
.
AmbientColor3
Long
Specifies the third color component of the ambient light. Valid values range from
0
to
255
.
AmbientColor4
Long
Specifies the fourth color component of the ambient light. Valid values range from
0
to
255
.
DirectionalBrightness
Long
Specifies the brightness of the directional light, which illuminates each pixel by an amount dependent on its surface gradient. Valid values range from
0
to
100
.
DirectionalColorModel
Long
Specifies the color model to use for the direction light:
3
= CMYK
5
= RGB
9
= grayscale
DirectionalColor1
Long
Specifies the first color component of the directional light. Valid values range from
0
to
255
.
DirectionalColor2
Long
Specifies the second color component of the directional light. Valid values range from
0
to
255
.
DirectionalColor3
Long
Specifies the third color component of the directional light. Valid values range from
0
to
255
.
DirectionalColor4
Long
Specifies the fourth color component of the directional light. Valid values range from
0
to
255
.
Direction
Long
Specifies the angle, clockwise, describing the direction the directional light is travelling in the plane of the image. Valid values range from
0
to
359
.
Declination
Long
Specifies the angle, clockwise, describing the direction the directional light is travelling. Valid values range from
0
to
359
.
Remarks:
The
EffectBumpMap
method applies the
Bump-map
effect to an image, adding texture and patterns to the image by embedding its surface with a relief based on the pixel values of a bump-map image.
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