Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Resource bitmap to BITMAP*

This thread is locked; no one can reply to it. rss feed Print
Resource bitmap to BITMAP*
mEmO
Member #1,124
March 2001
avatar

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]

---------------------------------------------
There is only one God, and Connor is his son!
http://www.memocomputers.com
Happy birthday!

23yrold3yrold
Member #1,134
March 2001
avatar

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

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

DanielH
Member #934
January 2001
avatar

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

Go to: