crop the image based on a new width and height
Namespace: ANDREICSLIB.ClassExtrasAssembly: ANDREICSLIB (in ANDREICSLIB.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static Bitmap Crop(
Bitmap inbit,
int newWidth = -1,
int newHeight = -1,
int startx = 0,
int starty = 0
)
Public Shared Function Crop (
inbit As Bitmap,
Optional newWidth As Integer = -1,
Optional newHeight As Integer = -1,
Optional startx As Integer = 0,
Optional starty As Integer = 0
) As Bitmap
public:
static Bitmap^ Crop(
Bitmap^ inbit,
int newWidth = -1,
int newHeight = -1,
int startx = 0,
int starty = 0
)
static member Crop :
inbit : Bitmap *
?newWidth : int *
?newHeight : int *
?startx : int *
?starty : int
(* Defaults:
let _newWidth = defaultArg newWidth -1
let _newHeight = defaultArg newHeight -1
let _startx = defaultArg startx 0
let _starty = defaultArg starty 0
*)
-> Bitmap
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