Previous Document Next Document
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 code 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 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.