API Documentation > CorelDRAW > 2025-v26 > Shape > IVGShape
Shape.ConvertToBitmap method
Rasterizes the shape from a vector to a bitmap object
Syntax:
Function ConvertToBitmap(Optional ByVal BitDepth As Long = 24, Optional ByVal Grayscale As Boolean = False, Optional ByVal Dithered As Boolean = True, Optional ByVal TransparentBG As Boolean = True, Optional ByVal Resolution As Long = 72, Optional ByVal AntiAliasing As cdrAntiAliasingType = cdrNormalAntiAliasing, Optional ByVal UseColorProfile As Boolean = True, Optional ByVal MultiChannel As Boolean = False, Optional ByVal AlwaysOverprintBlack As Boolean = False, Optional ByVal OverprintBlackLimit As Long = 95) As Shape
Parameters:
Name Type Description
BitDepth
Long
Specifies bit depth.
Grayscale
Boolean
Converts to grayscale if set to True (-1).
Dithered
Boolean
Enables dithering if set to True (-1).
TransparentBG
Boolean
Enables a transparent background if set to True (-1).
Resolution
Long
Specifies the resolution.
AntiAliasing
Specifies the anti-aliasing type, and returns cdrAntiAliasingType.
UseColorProfile
Boolean
Uses a color profile if set to True (-1).
MultiChannel
Boolean
AlwaysOverprintBlack
Boolean
OverprintBlackLimit
Long
Remarks:
The ConvertToBitmap method converts a shape to a bitmap. This method is obsolete and provided for backward compatibility only. It is recommended that you use the ConvertToBitmapEx method instead.