Autor Beitrag
sCrAPt
Gast
Erhaltene Danke: 1



BeitragVerfasst: Mo 10.03.03 22:29 
Hi
Wie kann ich die die Farbe von einem Pixel in nem Image rausfinden? Ich hab mir das zusammen gebastelt:
ausblenden Quelltext
1:
  panel1.Color:=form1.Image1.Picture.Bitmap.Canvas.Pixels[1,1];					

Aber wenn ich das Ausführe ist das Image weg und das Panel Schwarz :shock:

Wie kann ich das ändern :?:

Ich hab mich schon im Web umgesehen aber mit der Hilfe krig ich es auch ned hin :oops:
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Mo 10.03.03 22:56 
Hallo

Zitat:


Aber wenn ich das Ausführe ist das Image weg und das Panel Schwarz

bei mir nicht, das panel färbt sich schön, du machst irgendwas anderes falsch. wo rufst du denn das auf?
du kannst aber auch gleich
ausblenden Quelltext
1:
Image1.Canvas.Pixels[1,1];					
schreiben

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
sCrAPt
Gast
Erhaltene Danke: 1



BeitragVerfasst: Mo 10.03.03 23:05 
Jetzt gehts :D THX

Noch ne Frage: Wie finde ich raus wieviel X und Y das image hat?
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Mo 10.03.03 23:19 
ausblenden Quelltext
1:
image1.Picture.Height					

ausblenden Quelltext
1:
image1.Picture.Width					
Ist die Frage beantwortet? Das Problem gelöst?

Dann klicke hier, um das Thema entsprechend zu markieren!