Rectangle.fromXywh Method¶
Module: Rectangle
Definition¶
Creates an aligned rectangle from the top-left point and the width/height.
@staticmethod
from_xywh(x: int, y: int, w: int, h: int) -> Rectangle
Parameters
xintin X-coord of Top-left corner of the rectangle.yintin Y-coord of Top-left corner of the rectangle.wintin Width of the rectanglehintin Height of the rectangle.
Returns
The newly created rectangle.
Exceptions
An error has occurred during Finger Library execution.
static Rectangle fromXywh(int x, int y, int w, int h)
Parameters
xintin X-coord of Top-left corner of the rectangle.yintin Y-coord of Top-left corner of the rectangle.wintin Width of the rectanglehintin Height of the rectangle.
Returns
The newly created rectangle.
Exceptions
An error has occurred during Finger Library execution.
public static Rectangle FromXywh(int x, int y, int w, int h)
Parameters
xintin X-coord of Top-left corner of the rectangle.yintin Y-coord of Top-left corner of the rectangle.wintin Width of the rectanglehintin Height of the rectangle.
Returns
The newly created rectangle.
Exceptions
An error has occurred during Finger Library execution.
public static Rectangle fromXywh(int x, int y, int w, int h) throws FingerException
Parameters
xintin X-coord of Top-left corner of the rectangle.yintin Y-coord of Top-left corner of the rectangle.wintin Width of the rectanglehintin Height of the rectangle.
Returns
The newly created rectangle.
Exceptions
An error has occurred during Finger Library execution.
public static func fromXywh(x: Int32, y: Int32, w: Int32, h: Int32) throws -> Rectangle
Parameters
xInt32in X-coord of Top-left corner of the rectangle.yInt32in Y-coord of Top-left corner of the rectangle.wInt32in Width of the rectanglehInt32in Height of the rectangle.
Returns
The newly created rectangle.
Exceptions
An error has occurred during Finger Library execution.
int id3FingerRectangle_FromXywh (
    ID3_FINGER_RECTANGLE hRectangle,
    int x,
    int y,
    int w,
    int h)
Parameters
hRectangleID3_FINGER_RECTANGLEin Handle to the Rectangle object.xintin X-coord of Top-left corner of the rectangle.yintin Y-coord of Top-left corner of the rectangle.wintin Width of the rectanglehintin Height of the rectangle.
Returns