PNGUtil::Canvas
Constructors
Instance methods
==(other)
Two canvases are considered equal if they are of equal size and all their pixels are equal
each_row
Iterate over each row of the canvas
(a Slice(RGBA) of size @width).
The main usecase for this is
writing code that encodes images
in some file format.
height
Sourcepixels
Sourcevery basic nearest neighbor image scaling algorithm
set(x, y, color)
Set the value of pixel (x, y) to color
without checking if (x, y) is a valid position.
width
Source