ixfx
    Preparing search index...

    Namespace ImageDataGrid

    Wraps ImageData as an ixfx @ixfx/geometry.Grid type. This is useful because it's otherwise a one-dimensional array listing each rgba in turn.

    Functions

    accessor

    Returns a function to access pixel values by x,y

    byColumn

    Yields pixels of an image column by column

    byRow

    Yields pixels of an image row by row

    grid

    Returns a @ixfx/geometry/Grids.Grid based on the provided image

    setter

    Returns a function that sets pixel values

    wrap

    Returns an object that allows get/set grid semantics on the underlying image data. Uses 8-bit sRGB values, meaning 0..255 range for red, green, blue & opacity.