API Help
Eplan.EplApi.DataModel.Graphics Namespace / Image Class / SetArea Method
First corner of the rectangle
Second corner of the rectangle

In This Topic
    SetArea Method (Image)
    In This Topic
    Sets the size of a rectangle using the coordinates of the two opposite corners
    Syntax
    public override void SetArea( 
       PointD pntStart,
       PointD pntEnd
    )
    public:
    void SetArea( 
       PointD pntStart,
       PointD pntEnd
    ) override 

    Parameters

    pntStart
    First corner of the rectangle
    pntEnd
    Second corner of the rectangle
    Exceptions
    ExceptionDescription
    Thrown when the area cannot be set.
    Remarks
    The representation of the image will be distorted, if the aspect ratio of the rectangle does not match the aspect ratio of the original image.
    See Also