Optional
data: Float32ArrayProtected
__emptyReadonly
formatReadonly
sizeReadonly
strideProtected
_rotateUses given op
function to blend / composite pixels of this buffer with those of dest
and writes results into dest
. Supports same options as blit()
.
Optional
opts: Partial<BlitOpts>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.
Optional
opts: Partial<BlitOpts>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.
Protected
ensureProtected
ensureRGBAFlips image vertically.
Returns value at given position (given in same order as IGrid2D.size and IGrid2D.stride). If outside the grid's defined region, returns a suitable zero value.
Extracts region as new pixel buffer in same format.
Returns index for given position (stated in same order as IGrid2D.size and IGrid2D.stride). Returns negative value if outside the grid's defined region.
Postmultiplies alpha of all pixels (requires a pixel format with alpha channel).
Usually called after the final compositing/blending step. See IBlend.premultiply for reverse operation.
Premultiplies alpha of all pixels (requires a pixel format with alpha channel).
Usually called before starting a compositing/blending process. See IBlend.postmultiply for reverse operation.
Rotates pixel buffer 180 degrees.
Rotates pixel buffer according to given ID:
Rotates pixel buffer 90 degrees counterclockwise.
Rotates pixel buffer 90 degrees clockwise.
Optional
sampler: Filter | FloatSamplerWrites value at given position (given in same order as IGrid2D.size and IGrid2D.stride). Has no effect if outside of the defined region. Returns true, if succeeded.
Generated using TypeDoc
Deprecated
use
.data
instead