forked from Blendman974/faceclaw
EvenHub compativility fixes: Z-order changes, different text color distribution, text containers scroll
This commit is contained in:
1 parent
c713815694
commit
10a9c85f27
22 files changed
+1545
-610
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import { toData, fromData } from './kotlin-data'
|
||||
import { rgbaFromPacket } from './image-rgba'
|
||||
declare const FaceclawGraphics: any
|
||||
|
||||
/** Decoded RGBA of encoded image bytes, or null when undecodable (transparent pixels come out black). */
|
||||
export function decodeImageRgba(bytes: Uint8Array): { width: number; height: number; rgba: Uint8Array } | null {
|
||||
const data = FaceclawGraphics.rgbaPacketFromImageData(toData(bytes))
|
||||
return data ? rgbaFromPacket(fromData(data)) : null
|
||||
}
|
||||
Reference in new issue
Block a user