Export (0) Print
Expand All

WebImage.Crop Method

Crops an image.

Namespace:  System.Web.Helpers
Assembly:  System.Web.Helpers (in System.Web.Helpers.dll)

public WebImage Crop(
	int top,
	int left,
	int bottom,
	int right
)

Parameters

top
Type: System.Int32
The number of pixels to remove from the top.
left
Type: System.Int32
The number of pixels to remove from the left.
bottom
Type: System.Int32
The number of pixels to remove from the bottom.
right
Type: System.Int32
The number of pixels to remove from the right.

Return Value

Type: System.Web.Helpers.WebImage
The cropped image.

  • Medium trust for the immediate caller. This member can be used by partially trusted code.
Show:
© 2015 Microsoft