Ardillo\Image
On this page
Description
Ardillo base Image class.
Properties
Image::$app
Associated App instance
- type:
App
Methods
Image::__construct(float $width, float $height)
Creates a new Image instance
float $width
: The image widthfloat $height
: The image height
Image::isValid()
Returns whether the image is valid or not
Returns bool
Image::append(list<Color> $pixels, Size $size)
Appends a binary representation of the image
list<Color> $pixels
: Array of image representation pixels (as Color objects)Size $size
: Size of the image representation