Hello !
I'm trying to make my first c++ big program and i've a bug, but i don't know if it is dg sdk 1.1 or me.
Can someone help me ?
This is the code :
// ==== Phase 1 : From buffer to screen ====
Bsx=500;
Bsy=500;
if (Bsx>dbBitmapWidth(1)) Bsx=dbBitmapWidth(1);
if (Bsy>dbBitmapHeight(1)) Bsy=dbBitmapHeight(1);
Bsx=int(Zoom*Bsx);
Bsy=int(Zoom*Bsy);
dbInk ( dbRgb( 0,0,0 ) , 0);
dbBox ( 10 , 50 , 10+499 , 50+499);
dbCopyBitmap ( 1 , BufX , BufY, BufX+Bsx-1 , BufY+Bsy-1 , 0 , 10 , 50 , 10+499 , 50+499 );
// ==== Phase 2 : Drawing on screen ====
ETAPE=UseTool ( FA , ETAPE , 0 , 0 , 0 ,0 );
// ==== Phase 3 : screen to buffer ====
dbCopyBitmap ( 0 , 10 , 50 , 10+499 , 50+499 , 1 , BufX , BufY, BufX+Bsx-1 , BufY+Bsy-1 );
I'm trying to copy a bitmap resized to a 500x500 part of the screen, draw on it, and return the 500x500 part to the bitmap a the same place ! But when the zoom is not at 1.000, the resize bitmap at the screen disappear or scroll at down/right.
Is it a bug of dg sdk ?
4 is the number of the paper, 3 the number of the pen, and 1 then number of the perfect circle. Theese are the pyramids secrets !