painbrush

1.0.21.1.0
dist/src/image.js
dist/src/image.jsDeleted
−16
Index: package/dist/src/image.js
===================================================================
--- package/dist/src/image.js
+++ package/dist/src/image.js
@@ -1,16 +0,0 @@
-import { encode } from "fast-bmp";
-export const toImage = (layer) => {
-    const imageData = {
-        ...layer,
-        bitsPerPixel: 24,
-        compression: 0,
-        colorMasks: [],
-        components: 1,
-    };
-    const encoded = encode({
-        ...imageData,
-        channels: 3,
-        data: new Uint8Array(imageData.data),
-    });
-    return encoded;
-};