diff --git a/packages/pixel/src/packed.ts b/packages/pixel/src/packed.ts index 9a251f6059..b5635b3026 100644 --- a/packages/pixel/src/packed.ts +++ b/packages/pixel/src/packed.ts @@ -10,6 +10,7 @@ import { BayerSize, BlendFnInt, BlitOpts, + IPixelBuffer, Lane, PackedChannel, PackedFormat, @@ -57,7 +58,7 @@ export const buffer = ( pixels?: UIntArray ) => new PackedBuffer(w, h, fmt, pixels); -export class PackedBuffer { +export class PackedBuffer implements IPixelBuffer { static fromImage( img: HTMLImageElement, fmt: PackedFormat,