Resource bitmap to BITMAP*
mEmO

Is it possible? If I make a bitmap in the resource file, like this:

ID_MYBITMAP     BITMAP     "bitmap.bmp"

Is it then possible to convert it into an Allegro bitmap?

[edit]
Ah, just figured I could load it to a HBITMAP and then use convert_hbitmap_to_bitmap(). That would work, right?
[/edit]

23yrold3yrold

That's what I would suggest :) I don't recall ever doing it, but it should work ...

DanielH

In my game mousetrap, that is exactly what I do. Just make sure that you delete all the necessary memory when done.

Thread #230657. Printed from Allegro.cc