Autor Beitrag
alexschultze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 317



BeitragVerfasst: Mi 19.02.03 17:39 
hey, ich habe hier ne ziemlich große Bitmap, und ich würde die gerne mehrfach (d.h. zweidimensional) zusammenfügen, ca. 8 x 7 mal.


Wie mach ich das, z.B. mit Canvas?
Soll halt auch 2dimensional sein.


alex

_________________
Von allen Dingen die ich verloren habe trauere ich meinem Verstand am meisten nach.
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Do 20.02.03 16:21 
Hi,

einfach mit ner For-Schleife nen paar mal zeichnen... :)

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure TileBitmap(Dst, Src: TBitmap; Row, Col: Integer);
var
  x, y: Integer;
begin
  for x:=0 to Col do
    for y:=0 to Row do
      Dst.Canvas.Draw(Src.Width * x, Src.Height * y, Src);
end;


ungetestet, sollte aber gehen.

Au'revoir,
Aya

_________________
Aya
I aim for my endless dreams and I know they will come true!