In This Topic
Creates a
ShapeActionsCommand instance for the cropping picture.
Syntax
'Declaration
Public Shared Function Crop( _
ByVal As Picture, _
ByVal As Rectangle, _
ByVal As Rectangle, _
ByVal As Rectangle, _
ByVal As Rectangle, _
ByVal As Boolean _
) As ShapeActionsCommand
'Usage
Dim croppingPicture As Picture
Dim shapeRect As Rectangle
Dim sourceImageRect As Rectangle
Dim newShapeRect As Rectangle
Dim newSourceImageRect As Rectangle
Dim horizontalFlip As Boolean
Dim value As ShapeActionsCommand
value = ShapeActionsCommand.Crop(croppingPicture, shapeRect, sourceImageRect, newShapeRect, newSourceImageRect, horizontalFlip)
Parameters
- croppingPicture
- The GrapeCity.Spreadsheet.Drawing.Picture that will be cropped.
- shapeRect
- The picture's boundary.
- sourceImageRect
- The boundary of source image of the picture.
- newShapeRect
- The picture's boundary after adjusted.
- newSourceImageRect
- The boundary of source image of the picture after adjusted.
- horizontalFlip
See Also