How do I create a IBitmapControl / LICE_Bitmap from BYTE Array or Windows HBITMAP ?
Hello! Say I have a bitmap in memory as a HBITMAP, or as a raw byte* array (I can ensure the byte array has the BITMAPINFOHEADER + BITMAPFILEHEADER + Image Data, or only Image Data bytes). How do I create a new LICE_Bitmap from these BYTES or HBitmap?
Ultimately I'm trying to create an IBitmapControl from an HBITMAP or byte* array. But the LICE_Draw method keeps crashing on src->getHeight
EDIT: I think I found what I was looking for :
static LICE_IBitmap *hbmToBit(HBITMAP hbm, LICE_IBitmap *bmp)
Now I just need to convert my lice bitmap to a IBitmap, which I think is just a wrapper of some sorts? Ill check when I get home
Last edited by Opcode 7; 11-02-2018 at 10:39 AM.
|