Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Commands Namespace / ShapeActionsCommand Class / Crop Method
The GrapeCity.Spreadsheet.Drawing.Picture that will be cropped.
The picture's boundary.
The boundary of source image of the picture.
The picture's boundary after adjusted.
The boundary of source image of the picture after adjusted.


In This Topic
    Crop Method
    In This Topic
    Creates a ShapeActionsCommand instance for the cropping picture.
    Syntax
    'Declaration
     
    
    Public Shared Function Crop( _
       ByVal croppingPicture As Picture, _
       ByVal shapeRect As Rectangle, _
       ByVal sourceImageRect As Rectangle, _
       ByVal newShapeRect As Rectangle, _
       ByVal newSourceImageRect As Rectangle, _
       ByVal horizontalFlip 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