From 2dcbde5bb59bd87a33c9fb4362a4925db7ecb8bc Mon Sep 17 00:00:00 2001 From: Karsten Schmidt Date: Sat, 2 Jan 2021 16:03:38 +0000 Subject: [PATCH] refactor(pixel): implement IPixelBuffer for PackedBuffer --- packages/pixel/src/packed.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,