Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / How to load bitmap into program?

Author
Message
izic
15
Years of Service
User Offline
Joined: 9th Sep 2009
Location:
Posted: 11th Nov 2009 16:14
How do I load a bitmap into DarkGDK? I think I need to make a variable for the bitmap but I'm not sure how to. This what I have so far:

//function prototypes
void loadImage();

//main function
void DarkGDK()
{
int width, height;
loadImage();
dbWaitKey();
}
void loadImage()
{
dbLoadBitmap("blueflower.bmp", 0);
}
american eagle
17
Years of Service
User Offline
Joined: 2nd Aug 2007
Location:
Posted: 11th Nov 2009 16:51
I'm not sure what is you point here you don't know how to show the bitmap on screen or what? cause you already loaded the bitmap
dbLoadBitmap("blueflower.bmp", 0); is all u have to do to load it
explain your problem more so I can help
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 11th Nov 2009 22:08
Remember that bitmap #0 is the screen. You may be overwriting it when you first draw the screen.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
puppyofkosh
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 11th Nov 2009 23:33
dbLoadImage might also work for bitmaps.

Login to post a reply

Server time is: 2024-10-01 16:37:58
Your offset time is: 2024-10-01 16:37:58