API Documentation > CorelDRAW > 2025-v26 > Shape > IVGShape
Shape.Bitmap property
Allows users to access the bitmap properties
Syntax:
Property Get Bitmap() As Bitmap
Remarks:
The Bitmap property returns a Bitmap object that represents the bitmap-related properties of a bitmap shape.
Examples:
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