Previous Document Next Document

Object Model Reference : Classes : S : Shape : Properties : Shape.Bitmap


Shape.Bitmap

Property Bitmap As Bitmap

Description

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.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.