Share via


Image.crop(Int32, Int32, Int32, Int32) Method

Definition

Crops the image.

public:
 virtual int crop(int _x, int _y, int _w, int _h);
public virtual int crop (int _x, int _y, int _w, int _h);
abstract member crop : int * int * int * int -> int
override this.crop : int * int * int * int -> int
Public Overridable Function crop (_x As Integer, _y As Integer, _w As Integer, _h As Integer) As Integer

Parameters

_x
Int32

The height of the region that you want to crop from the point (x, y).

_y
Int32

The height of the region that you want to crop from the point (x, y).

_w
Int32

The height of the region that you want to crop from the point (x, y).

_h
Int32

The height of the region that you want to crop from the point (x, y).

Returns

0 indicates success; otherwise, failure.

Applies to