Class CropTransform

    Definition

    Namespace:
    Tizen.Multimedia.Util
    Assembly:
    Tizen.Multimedia.Util.dll

    Crops an image.

    public class CropTransform : ImageTransform
    Inheritance
    object
    ImageTransform
    CropTransform

    Constructors

    View Source

    CropTransform(Rectangle)

    Initializes a new instance of the CropTransform class.

    Declaration
    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.

    Properties

    View Source

    Region

    Gets or sets the crop region.

    Declaration
    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.

    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX