Autor Beitrag
der Berliner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: Do 25.05.06 12:12 
Halllo Leute
ich steh grad aufm Schlauch
Wie lese ich die Farbe an einer beliebigen Mausposition aus.
Meine Bücher machen mich nicht schlauer und Suchbegriffe fallen mir keine mehr ein e.g.'Farbe an Mausposition auslesen'
'Farbe bestimmen bei Curserposition', usw.

Bitte um Hilfe
Gruß

_________________
[b]Ich weiß nicht immer, wovon ich rede. Aber ich weiß, dass ich recht habe.[b]
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 25.05.06 12:16 
Pack ins OnMouseMove des Images, wo du die Landkarte drin hast (ich liege doch richtig, oder? :mrgreen:), sowas:
ausblenden Delphi-Quelltext
1:
2:
3:
var MeineColor: TColor;
//...
MeineColor := GetPixel(LandkarteImage.Canvas.Handle,x,y);

_________________
We are, we were and will not be.
der Berliner Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: Do 25.05.06 12:21 
Ja du liegst richtig :flehan:
das das ins onMouseMove kommt weiß ich nur GetPixel is mir nicht geläufig
hatte keinen plan wie ich das bewerkstelligen kann.
gruß und Danke

_________________
[b]Ich weiß nicht immer, wovon ich rede. Aber ich weiß, dass ich recht habe.[b]