final class ImageDimensions (View source)

Describes validated bitmap dimensions with strictly positive width and height

Methods

__construct(int $width, int $height)

Creates strictly positive width and height bounds for image processing

int
pixels()

Returns the total pixel budget represented by the dimensions

int

Details

__construct

__construct(int $width, int $height)

Creates strictly positive width and height bounds for image processing

Parameters

int $width
int $height

pixels

int pixels()

Returns the total pixel budget represented by the dimensions

Return Value

int