Uses given op
function to blend / compose pixels of this buffer with those of dest
and writes results into dest
. Supports same options as blit()
.
Blits pixels into given dest
pixel buffer, using provided options. If dest
buffer is smaller than source buffer, only the top-left region will be written.
Destination MUST be of same format as original. No conversion is performed.
Converts and blits pixels into given canvas (or canvas context) at position x
, y
(0,0 by default). If canvas is smaller than source buffer, only the top-left region will be written.
Flips image vertically.
Returns value at given position. If pos is outside the defined region, returns a suitable zero value.
Non-boundschecked version of {@link IGrid2D.getAt}. Assumes given position is valid.
Extracts region as new pixel buffer in same format.
Returns scaled version of this buffer using given sampler or filter (default: "linear"
) for interpolation. Syntax sugar for PackedBuffer.resize.
Writes value at given position. Has no effect if outside of the defined region.
Non-boundschecked version of {@link IGrid2D.setAt}. Assumes given position is valid.
Returns the contents of the pixel buffer as HTML canvas ImageData
.
Generated using TypeDoc
use
.data
instead