Click or drag to resize
BitmapExtrasCrop Method
crop the image based on a new width and height

Namespace: ANDREICSLIB.ClassExtras
Assembly: ANDREICSLIB (in ANDREICSLIB.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static Bitmap Crop(
	Bitmap inbit,
	int newWidth = -1,
	int newHeight = -1,
	int startx = 0,
	int starty = 0
)

Parameters

inbit
Type: System.DrawingBitmap
in image
newWidth (Optional)
Type: SystemInt32
a size, or -1 for the input size
newHeight (Optional)
Type: SystemInt32
a size, or -1 for the input size
startx (Optional)
Type: SystemInt32
starty (Optional)
Type: SystemInt32

Return Value

Type: Bitmap
See Also