Rectangle.fromXywh Method

Module: Rectangle

Definition

Creates an aligned rectangle from the top-left point and the width/height.

static Rectangle fromXywh(int x, int y, int w, int h)

Parameters

x int
in X-coord of Top-left corner of the rectangle.

y int
in Y-coord of Top-left corner of the rectangle.

w int
in Width of the rectangle

h int
in Height of the rectangle.

Returns

The newly created rectangle.

Exceptions

An error has occurred during Face Library execution.