Previous Document Next Document

Object Model Reference : Classes : S : ShapeRange : Methods : ShapeRange.ConvertToBitmap


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

Description

Member of ShapeRange

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.

Parameter
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
Specifies the background to transparent if set to True (-1). This parameter is optional, and its default value is True.
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.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.