Autor Beitrag
*beatsteak*
Hält's aus hier
Beiträge: 4


Delphi 7 enterprise
BeitragVerfasst: Sa 18.02.06 19:16 
Hallo,

habe mal eine Frage:

We kann ich bei einem Bitmap überprüfen, welche Farbe das Bild an der Stelle [x,y] hat?

Habe nämlich 2 Bitmaps, eins bewegt sich auf ein anderes zu, wenn sie übereinander liegen soll noch geprüft werden, ob Bitmap1 an der Position[x,y] weiß ist.

Geht das überhaupt?

Thx, schonmal =)

lg, *beatsteak*
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Sa 18.02.06 19:39 
So:
ausblenden Delphi-Quelltext
1:
showmessage(colortostr(deinebitmap.Canvas.Pixels[x,y]));					

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
*beatsteak* Threadstarter
Hält's aus hier
Beiträge: 4


Delphi 7 enterprise
BeitragVerfasst: Sa 18.02.06 19:50 
hey,

vielen Dank =)

lg, beatsteak
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Sa 18.02.06 19:51 
Einfach ausprobieren hilft IMMER ;)

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot