API Documentation > CorelDRAW > 2025-v26
PatternCanvas class
Represents the settings for a two-color bitmap-fill pattern
Syntax:
Class PatternCanvas
Remarks:
The PatternCanvas class represents the settings for a two-color bitmap-fill pattern. You can use the PatternCanvas object to create new patterns or modify existing ones. You can create a PatternCanvas object by using the New keyword in Visual Basic.
Properties:
Name Description
Data Gets or sets the Canvas Data
Height Gets or sets the Height
Index Gets the Index
Pixel Gets or sets the Pixel at position (x,y)
Size Gets or sets the Size
Width Gets or sets the Width
Methods:
Name Description
Clear Clears the Pattern Canvas
CopyArea Copy the Area (x1,y1)-(x2,y2) to new origin (x,y)
FillArea Fills the Area (x1,y1)-(x2,y2)
FlipArea Flips the Area
Line Draw a line
PSet Sets the Pixel
PutCopy Puts data of another canvas
RotateArea Rotates the Area
Select Sets the image from preset image list