Guest User

Untitled

a guest
Jan 23rd, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.48 KB | None | 0 0
  1. if Farbe = 'orange'
  2.      then
  3.       begin
  4.        if Richtung = 'links'
  5.          then
  6.            region := rect(0, 0, 39, 39);
  7.        if Richtung = 'oben'
  8.          then
  9.            region := rect(39+1, 0, 39*2+1, 39);
  10.        if Richtung = 'rechts'
  11.          then
  12.            region := rect(39*2+2, 0, 30*3+2, 39);
  13.        if Richtung = 'unten'
  14.          then
  15.            region := rect(39*3+3, 0, 30*4+3, 39);
  16.       end;
  17.     Bild.Canvas.CopyRect(region, TempBild.Canvas, region);
Add Comment
Please, Sign In to add comment