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 / Image???

Author
Message
Tylerman35
15
Years of Service
User Offline
Joined: 23rd Jul 2009
Location:
Posted: 24th Jul 2009 04:05
When ever i run my picture program it stays to a black screen...here is my code..?


#include "DarkGDK.h"


void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );

SetCurrentDirectory ("Media");
dbLoadImage ( "Evil.bmp" , 1);

while ( LoopGDK ( ) )
{

dbSync ( );
}


return;
}
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 24th Jul 2009 16:25 Edited at: 24th Jul 2009 18:19
you loaded the image but you must call dbSprite() or dbPasteImage() to show them on the screen

http://img268.imageshack.us/img268/3640/signatureugo.jpg
Drowneath
15
Years of Service
User Offline
Joined: 22nd Jun 2009
Location: In your eyes
Posted: 24th Jul 2009 17:38
dbPasteImage
This command will paste the specified image to the screen. Optionally, you can paste images to bitmaps using the dbSetCurrentBitmap command. If the optional transparent flag is set to one, all coloured pixels of RGB(0,0,0) are not drawn. The parameters should be specified using integer values.

Syntax
void dbPasteImage ( int iImage, int iX, int iY )
void dbPasteImage ( int iImage, int iX, int iY, int iTransparency )

Login to post a reply

Server time is: 2024-10-01 08:45:51
Your offset time is: 2024-10-01 08:45:51