Previous Document Next Document

Object Model Reference : Classes : B : Bitmap : Methods : Bitmap.Crop


Bitmap.Crop

Sub Crop()

Description

Member of Bitmap

The Crop method crops the bitmap to its clipping path.

VBA example

The following VBA example crops all bitmaps which can be cropped.

Sub Test()
 Dim s As Shape
 For Each s In ActivePage.Shapes
  If s.Type = cdrBitmapShape Then
   If s.Bitmap.Cropped Then s.Bitmap.Crop
  End If
 Next s
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.