CropArea
class CropArea extends SubjectArea (View source)
Properties
int | $width | from SubjectArea | |
int | $height | from SubjectArea | |
int | $x | from SubjectArea | |
int | $y | from SubjectArea | |
bool | $percentage | from SubjectArea |
Methods
__construct(int $x, int $y, int $width = 1, int $height = 1, bool $percentage = false)
SubjectArea constructor.
from
SubjectArea
static DynamicMetadataInterface
createFromDecodedJsonResponse(array $data)
Create a CropArea from the decoded JSON data.
static string
getName()
No description
Details
__construct(int $x, int $y, int $width = 1, int $height = 1, bool $percentage = false)
SubjectArea constructor.
The SubjectArea can also be defined as a point, by setting both "width" and "height" to 1.
static DynamicMetadataInterface
createFromDecodedJsonResponse(array $data)
Create a CropArea from the decoded JSON data.
static string
getName()
No description
mixed
getForJson()
Get the data, which should be json-fied later.