void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbLoadImage("LED green.bmp",50000);
if(dbGetImageWidth(50000)<320){
dbPrint("It FAILED to Load most likely");dbSync();dbSync();dbWaitKey();return;
};
dbMakeMemblockFromImage(50000,50000);
if(dbGetMemblockSize(50000)>0){
dbPrint("It WORKED!!!!!");dbSync();dbSync();dbWaitKey();return;
}else{
dbPrint("It FAILED!!!!! BUG BUG BUG");dbSync();dbSync();dbWaitKey();return;
};
return;
}
Media Attached.
It MUST be the
dbMakeMemblockFromImage - because everything I've done after - like get memblock size, trying to read values - JUNK
Note: I tried more than one pic (wider then 320 pixels - you'll notice why in the test code I just posted) and same result.
I'm trying to Convert the Game creators Issue 59 Font Tutorial to GDK and can't do it!!!!
[EDIT]
---Appendum - Its a DEFINATE BUG. If you lower the ID's to FIVE's instead of 50000 - It Works. This means DARK BASIC PRO can handle HIGHER ID values than DarkGDK can - for Memblocks at least. UGH.
[/edit]
[edit2] MODERATOR - Please change this topic to something more searchable. suggestion:
BUG - Memblock - dbMakeMemblockFromImage with Large ID's
Thanx in advance.
[/edit2]
[edit3]
I Did more research - here's the Deal. Nothing Wrong AT ALL with the Load Image Command. It's DEFINATELY
dbMakeMemblockFromImage and here's the MAGIC ID NUMBER
257 and lower WORKS!
258 and higher DOES NOT.
[/edit3]
[edit4]
It's worse than I thought.
You simply cannot have a MEMBLOCK with an ID > 257 TGC - Please fix this.
[/edit4]