mixster

mixster

Apr 21st, 2009
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.48 KB | None | 0 0
  1. var
  2.   meh: T2DIntArray;
  3.   x, y, bmp: Integer;
  4. begin
  5.   DisplayDebugImgWindow(200, 100);
  6.  
  7.   SetLength(meh, 100);
  8.   for y := 0 to 99 do
  9.   begin
  10.     SetLength(meh[y], 200);
  11.     for x := 0 to 199 do
  12.       meh[y][x] := Random(256);
  13.   end;
  14.  
  15.   bmp := BitmapFromString(200, 100, '');
  16.   for y := 0 to 99 do
  17.     for x := 0 to 199 do
  18.       FastSetPixel(bmp, x, y, RGBtoColor(meh[y][x], meh[y][x], meh[y][x]));
  19.  
  20.   SafeDrawBitmap(bmp, GetDebugCanvas, 0, 0);
  21.   FreeBitmap(bmp);
  22. end.
Add Comment
Please, Sign In to add comment