Skip to main content

@microsoft/fast-colors > ImageDataPixelBlob

ImageDataPixelBlob class

A PixelBlob implementation from an ImageData object.

Signature:
export declare class ImageDataPixelBlob implements PixelBlob 

Constructors

ConstructorModifiersDescription
(constructor)(image)Constructs a new instance of the ImageDataPixelBlob class

Properties

PropertyModifiersTypeDescription
getPixel(x: number, y: number) => ColorRGBA64
getPixelRGBA(x: number, y: number) => number[]
heightnumber
totalPixelsnumber
widthnumber