API Documentation > CorelDRAW > 2025-v26 > ShapeRange > IVGShapeRange
ShapeRange.ConvertToBitmapEx method
Rasterizes range of shapes to a Bitmap file and returns a shape
Syntax:
Function ConvertToBitmapEx(Optional ByVal Mode As cdrImageType = cdrRGBColorImage, Optional ByVal Dithered As Boolean = False, Optional ByVal Transparent As Boolean = False, Optional ByVal Resolution As Long = 72, Optional ByVal AntiAliasing As cdrAntiAliasingType = cdrNormalAntiAliasing, Optional ByVal UseColorProfile As Boolean = True, Optional ByVal AlwaysOverprintBlack As Boolean = False, Optional ByVal OverprintBlackLimit As Long = 95) As Shape
Parameters:
Name Type Description
Mode
Specifies the type of image, and returns cdrImageType.
Dithered
Boolean
Specifies whether the image is dithered when exported.
Transparent
Boolean
Specifies the transparency of the background.
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).
AlwaysOverprintBlack
Boolean
OverprintBlackLimit
Long
Remarks:
The ConvertToBitmapEx method converts each shape in a shape range to a bitmap.
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