Previous Document Next Document
Bitmap.Crop

Sub Crop()

Member of Bitmap

The Crop method crops the bitmap to its clipping path.

The following code 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 2007 Corel Corporation. All rights reserved.