API Documentation > CorelDRAW > 2025-v26 > ShapeRange > IVGShapeRange
ShapeRange.ConvertToBitmap method
Rasterizes all shapes in the range 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 the bit depth.
Grayscale
Boolean
Converts to grayscale if set to True (-1).
Dithered
Boolean
Enables dithering if set to True (-1).
TransparentBG
Boolean
Specifies the background to transparent if set to True (-1).
Resolution
Long
Specifies the resolution.
AntiAliasing
Specifies the type of anti-aliasing, and returns cdrAntiAliasingType.
UseColorProfile
Boolean
Uses the color profile if set to True (-1).
MultiChannel
Boolean
AlwaysOverprintBlack
Boolean
OverprintBlackLimit
Long
Remarks:
The ConvertToBitmap method converts each shape in a shape range to a bitmap. This method is obsolete and provided for backward compatibility only. It is recommended that you use the ConvertToBitmapEx method instead.
Examples:
The following VBA example converts each selected shape to a grayscale bitmap with a transparent background.
Sub Test()
ActiveSelectionRange.ConvertToBitmapEx cdrGrayscaleImage, False, True 
End Sub