COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > Other Software Discussion > WDL users forum

Reply
 
Thread Tools Display Modes
Old 11-02-2018, 07:15 AM   #1
Opcode 7
Human being with feelings
 
Join Date: Mar 2017
Posts: 79
Default 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.
Opcode 7 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.