WebImage.Crop(Int32, Int32, Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
剪切图像。
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
参数
- top
- Int32
要从顶部删除的像素数。
- left
- Int32
要从左侧删除的像素数。
- bottom
- Int32
要从底部删除的像素数。
- right
- Int32
要从右侧删除的像素数。
返回
剪切的图像。