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 / Hello World Picture?

Author
Message
Hotshot
22
Years of Service
User Offline
Joined: 13th Oct 2002
Location:
Posted: 26th Nov 2007 18:41 Edited at: 27th Nov 2007 00:01
Hiya all,
I am new to GDK and I am impress with GDK. I wish the document would improve abit like putting example code as that would be 10 / 10 but so far..I have to say 9 / 10.

I trying to get hello world picture on the screen and can anyone tell me what I am doing wrong and what is the correct code to make it work.



Cheers
RPDan
17
Years of Service
User Offline
Joined: 29th Apr 2007
Location:
Posted: 26th Nov 2007 18:45
load it as bitmap 0
hyrichter
20
Years of Service
User Offline
Joined: 15th Feb 2004
Location: Arizona
Posted: 26th Nov 2007 23:20
Why don't you try it the way the tutorial shows you as an animated sprite? Or you could just use dbPasteImage

CodeSurge
Version 1.0 finally released! Code your DBP projects in style. (And save the kittens!)
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th Nov 2007 00:02
Only bitmap 0 is ever displayed. The other bitmaps are used as working areas. You can either load the image to bitmap 0 as suggested by RPDan, or you can use the dbCopyBitmap to copy the image to bitmap 0.

Utility plugins collection and
http://www.matrix1.demon.co.uk for older plug-ins and example code

Login to post a reply

Server time is: 2024-11-16 22:04:51
Your offset time is: 2024-11-16 22:04:51