Autor Beitrag
Cookie007
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 96

win2000 / Xp / Linux9.3
Delphi7
BeitragVerfasst: Do 07.12.06 20:16 
Hallo leute,

Ich möchte mit canvas einen pixel colorieren und danach zum nächsten springen
zwei fragen:
1.wie coloriere ich einen Pixel?
2. wie ging ddas noch gleich mit der X und der Y achse also wie weise ich canvas einen pixel zu?
danke cookie007


Moderiert von user profile iconChristian S.: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Do 07.12.2006 um 23:20

_________________
Mein System : A64 2400 Clawhammer, 1534 MB Ram, 200GB Festplatte, GeForce 6600 (Gigabyte)
Warum so ein langes Gesicht auf jede Frage gibt es eine Antwort, du musst sie nur suchen.(suchfunktion)
Ironwulf
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: Do 07.12.06 20:26 
Canvas.Pixels[X,Y]:= clBlack // oder farbcode
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Do 07.12.06 20:27 
(a) die Suche hier benutzen?
(b) TCanvas + F1

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Do 07.12.06 20:28 
user profile iconIronwulf hat folgendes geschrieben:
Canvas.Pixels[X,Y]:= clBlack // oder farbcode


Da wundert einen doch Pisa gar nicht mehr :wink:

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
Ironwulf
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: Do 07.12.06 20:28 
lol why?
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Do 07.12.06 20:31 
user profile iconIronwulf hat folgendes geschrieben:
lol why?
wenn man nur fertigen Copy&Paste-Brei bekommt, wobei man schon TCanvas hat und zu f... ist F1 zu drücken, naja selber lesen unden denken muss man dann nicht mehr, leider :cry:

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
evilsoft.de
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 39

XP
Delphi 7
BeitragVerfasst: Do 07.12.06 20:33 
ich machs im Bsp. mal mit ner PaintBox:
ausblenden Delphi-Quelltext
1:
PaintBox1.Canvas.Pixels[1,2] := $0000FF;					

Dieser Befehl gibt den Pixel 1(x-koordinate)/2(y-koordinate) die Farbe Rot.
Die Hexzahl sind die Farbwerte RGB ($00|Rot;$00|Grün;$FF|Blau;) wobei es in Delphi glaub ich BGR (Blau Grün Rot) ist also ($00|Blau;$00|Grün;$FF|Rot;).
Cookie007 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 96

win2000 / Xp / Linux9.3
Delphi7
BeitragVerfasst: Do 07.12.06 20:39 
ja aber wie muss ein solcher farbcode optisch aussehen?
ausblenden Delphi-Quelltext
1:
 canvas.pixels[x,y] := ???					

_________________
Mein System : A64 2400 Clawhammer, 1534 MB Ram, 200GB Festplatte, GeForce 6600 (Gigabyte)
Warum so ein langes Gesicht auf jede Frage gibt es eine Antwort, du musst sie nur suchen.(suchfunktion)
Cookie007 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 96

win2000 / Xp / Linux9.3
Delphi7
BeitragVerfasst: Do 07.12.06 20:41 
sorry antwort zu spät gesehen

_________________
Mein System : A64 2400 Clawhammer, 1534 MB Ram, 200GB Festplatte, GeForce 6600 (Gigabyte)
Warum so ein langes Gesicht auf jede Frage gibt es eine Antwort, du musst sie nur suchen.(suchfunktion)