forked from Blendman974/faceclaw
EvenHub compatibility for iOS
This commit is contained in:
1 parent
617cdc39eb
commit
7e58c7c05f
40 files changed
+629
-176
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import { grayImageFromPacket } from './image-files';
|
||||
import { fromData } from './kotlin-data';
|
||||
import type { GrayImage } from '../graphics/image';
|
||||
declare const FaceclawGraphics: any;
|
||||
|
||||
export function loadIconImage(path: string, maxWidth: number, maxHeight: number): GrayImage | null {
|
||||
const data = FaceclawGraphics.decodeImageFileMaxWidthMaxHeight(path, Math.round(maxWidth), Math.round(maxHeight));
|
||||
return data ? grayImageFromPacket(fromData(data)) : null;
|
||||
}
|
||||
Reference in new issue
Block a user