Autor Beitrag
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Mo 14.06.04 20:23 
Also ich weiß jetzt ja den Lichtwert vom Lego Mindstorms-Lichtsensor.
Jetzt will ich auf meinem Form (z.B. Image), einen neuen Punkt zeichnen in der Farbe des Lichtwertes (0 = Schwarz...).

1. Wie kann ich einen Punkt zeichnen?
2. Wie kann ich den Punkt in einer Farbe des Lichtwertes anmalen?
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Mo 14.06.04 20:27 
Hi,

GTA-Place hat folgendes geschrieben:
1. Wie kann ich einen Punkt zeichnen?

einfach auf den Canvas Zeichnen.. also z.B.:
ausblenden Delphi-Quelltext
1:
Image1.Canvas.Pixel[x,y]:=clRed;					


GTA-Place hat folgendes geschrieben:
2. Wie kann ich den Punkt in einer Farbe des Lichtwertes anmalen?

siehe oben ;) einfach clRed durch deine farbe ersetzen.

Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
GTA-Place Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Mo 14.06.04 20:29 
ok thx