Object Model Reference : Classes : S : ShapeRange : Methods : ShapeRange.ConvertToBitmapEx |
Function ConvertToBitmapEx([Mode As cdrImageType = cdrRGBColorImage], [Dithered As Boolean = False], [Transparent As Boolean = False], [Resolution As Long = 72], [AntiAliasing As cdrAntiAliasingType = cdrNormalAntiAliasing], [UseColorProfile As Boolean = True]) As Shape
Member of ShapeRange
The ConvertToBitmapEx method converts each shape in a shape range to a bitmap.
Parameter
|
Description
|
Mode
|
Specifies the type of image, and returns cdrImageType. This parameter is optional, and its default value is cdrRGBColorImage (4).
|
Dithered
|
Specifies whether the image is dithered when exported. This parameter is optional, and its default value is False.
|
Transparent
|
Specifies the transparency of the background. This parameter is optional, and its default value is False.
|
Resolution
|
Specifies the resolution. This parameter is optional, and its default value is 72.
|
AntiAliasing
|
Specifies the type of anti-aliasing, and returns cdrAntiAliasingType. This parameter is optional, and its default value is cdrNormalAntiAliasing (1).
|
UseColorProfile
|
Uses the color profile if set to True (-1). This parameter is optional, and its default value is True.
|
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 |
Copyright 2013 Corel Corporation. All rights reserved.