1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-11 11:55:02 -05:00
Simba/Tests/PS/debugimageform.simba

22 lines
473 B
Plaintext
Raw Normal View History

2010-04-09 16:02:20 -04:00
program new;
var
Bmp,x,y : integer;
DebugBmp : integer;
begin
Bmp := createbItmap(100,100);
CopyClientToBitmap(Bmp,0,0,99,99);
for x := 0 to 49 do
begin;
for y := 0 to 49 do
begin;
fastsetpixel(bmp,x,y,random(clwhite));
fastsetpixel(bmp,y,x,random(clwhite));
end;
x := x + 5;
end;
DisplayDebugImgWindow(100,100);
DrawBitmapDebugImg(bmp);
DebugBMP := GetDebugBitmap;
SaveBitmap(DebugBmp,ScriptPath + 'debugimage.bmp');
end.