Class CropTransform

Definition

Namespace:
Tizen.Multimedia.Util
Assembly:
Tizen.Multimedia.Util.dll
API Level:
4

Crops an image.

C#
Copy
public class CropTransform : ImageTransform
Inheritance
System.Object
CropTransform

Constructors

View Source

CropTransform(Rectangle)

Initializes a new instance of the CropTransform class.

Declaration
C#
Copy
public CropTransform(Rectangle region)
Parameters
Type Name Description
Rectangle region

The crop region.

Exceptions
Type Condition
System.ArgumentOutOfRangeException

The X-position of region is less than zero.
-or-
The Y-position of region is less than zero.
-or-
The width of region is less than or equal to zero.
-or-
The height of region is less than or equal to zero.

API Level: 4

Properties

View Source

Region

Gets or sets the crop region.

Declaration
C#
Copy
public Rectangle Region { get; set; }
Property Value
Type Description
Rectangle
Exceptions
Type Condition
System.ArgumentOutOfRangeException

The X-position of value is less than zero.
-or-
The Y-position of value is less than zero.
-or-
The width of value is less than or equal to zero.
-or-
The height of value is less than or equal to zero.

API Level: 4