Previous Document Next Document
ShapeRange.ConvertToBitmap

Function ConvertToBitmap([BitDepth As Long = 24], [Grayscale As Boolean = False], [Dithered As Boolean = True], [TransparentBG As Boolean = True], [Resolution As Long = 72], [AntiAliasing As cdrAntiAliasingType = cdrNormalAntiAliasing], [UseColorProfile As Boolean = True]) As Shape

Member of ShapeRange

The ConvertToBitmap method converts all of the objects in the range to bitmaps.

This method is obsolete and provided for backward compatibility only. It is recommended that you use the ConvertToBitmapEx method instead.

Parameters
Description
BitDepth
Specifies the bit depth
This parameter is optional, and its default value is 24.
Grayscale
Converts to grayscale if set to True (-1)
This parameter is optional, and its default value is False.
Dithered
Enables dithering if set to True (-1)
This parameter is optional, and its default value is True.
TransparentBG
Sets the background to transparent if set to True (-1)
This parameter is optional, and its default value is True.
Resolution
Lets you specify the resolution
This parameter is optional, and its default value is 72.
AntiAliasing
Lets you specify the type of anti-aliasing.This value 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 code example converts the selected shape or shapes to grayscale bitmaps with a transparent background:

Sub Test() 
 ActiveSelectionRange.ConvertToBitmapEx cdrGrayscaleImage, False, 
True 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.