WebImage.Crop(Int32, Int32, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Crops an image.
public System.Web.Helpers.WebImage Crop (int top = 0, int left = 0, int bottom = 0, int right = 0);
member this.Crop : int * int * int * int -> System.Web.Helpers.WebImage
Public Function Crop (Optional top As Integer = 0, Optional left As Integer = 0, Optional bottom As Integer = 0, Optional right As Integer = 0) As WebImage
Parameters
- top
- Int32
The number of pixels to remove from the top.
- left
- Int32
The number of pixels to remove from the left.
- bottom
- Int32
The number of pixels to remove from the bottom.
- right
- Int32
The number of pixels to remove from the right.
Returns
The cropped image.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for