Autor Beitrag
Davidandflash
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Mi 18.12.02 20:09 
Ich möchte gerne ein Program erstellen, in dem eine Bitmap-Datei sich über einer anderen bewegt. Leider habe ich noch keine Erfahrung in der Arbeit mit Bildern. Bitte also eine ausführliche Erklärung. :shock:
Davidandflash Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Mi 18.12.02 20:10 
PS: Ist es möglich, dass die obere Bitmap einen transparenten Bereich besitzt?
Logiqu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43

Win XP
Delphi 2006 Pro
BeitragVerfasst: So 22.12.02 03:08 
hi

wenn ich das richtig verstanden haben, willst du einfach z. b. eine kleine bitmap auf eine große setzen? das ist nicht weiter schlimm. nehmen wir an, du hast zwei TImage-Objekte. in Image1 liegt die große bitmap und in Image2 die kleine. dann gibst du diesen befehl ein:

Image1.Picture.Bitmap.Canvas.Draw(100, 120, Image2.Picture.Bitmap);

damit zeichnet er die kleine bitmap auf die große an die stelle x=100 und y=120. wenn du die kleine bitmap jedoch auf der anderen bewegen willst, musst du beide bitmaps zwischenspeichern und dann in eine gemeinsame andere bitmap zeichnen.
kampfkoloss23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96



BeitragVerfasst: So 29.12.02 16:53 
benutze doch einfach die imagelist komponente
da kannst du dann auch einstellen, was transparent ist. Ein Viereckiges Bmp, bei dem dann z.B alle Schwarzen pixel durchsichtig sind