Object Model Reference : Classes : S : Shape : Properties : Shape.Bitmap |
Property Bitmap As Bitmap
Member of Shape
The Bitmap property returns a Bitmap object that represents the bitmap-related properties of a bitmap shape.
The Bitmap property returns a read-only value.
The following VBA example creates a rectangle, converts it to a bitmap, and then shows the resulting bitmap size in pixels.
Sub Test() |
Dim s As Shape |
Set s = ActiveLayer.CreateRectangle(0, 0, 2, 2) |
s.Fill.ApplyTextureFill "Patches 5C" |
Set s = s.ConvertToBitmapEx(cdrRGBColorImage) |
MsgBox "The resulting bitmap is " & s.Bitmap.SizeWidth & "x" & _ |
s.Bitmap.SizeHeight & " pixels" |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.