Here is my second question:
I want to capture (and save as the image) some part of the screen.
Based on the command reference and my best understending, I am trying to do:
inside LoopGDK:
if (dbMouseClick() == 1)
{ //grab image
dbCreateBitmap (iBitmap, iBitmapWidth, iBitmapHeight);
dbSetCurrentBitmap (iBitmap ) ;
dbGetImage (8, 100, 100, 100+iBitmapWidth, 100+iBitmapHeight);
}
else dbSetCurrentBitmap (0) ;
and nothing. No image that I could save later (to test I tried to show it later on screen using dbSprite ( 107, 400, 300, 8 ) call)
I wish developers could put more details into the function descriptions.