Autor Beitrag
mandawar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 25

Win XP, Suse 9.0
3.0
BeitragVerfasst: Fr 12.03.04 18:16 
Hi Leute,
in der Schule programmieren wir z.zt. intensiv Delphi, und ich wollte mir ein Programm schreiben, welches im Hintergrund läuft und aus einem Spiel immer einen Pixel kontrolliert (20 mal inner Sekunde). wenn ich aber erst den ganzen Bildschirm einlese ist das zu Ressourcenaufwändig. Also will ich nur einen Pixel kontrollieren (Koordinaten und Farbcode weis ich). Und wenn dieser Pixel einen bestimmten Farbcode annimmt, soll er den Interrupt an den PC senden, als wenn ich die Taste "a" drücke... hat da wer ne Ahnung, wie schonmal das mit der Pixelkontrolle realisieren kann?
Schonmal danke
Mandawar
Chris1308
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 220

Win XP Prof.
D2005 Prof, D7 Prof, D7 Pers
BeitragVerfasst: Sa 13.03.04 10:24 
Hi,
ich schieße jetzt mal direkt irgendwo hin: Screen.Canvas.Pixel

Mit der Variablen Screen hast du Zugriff auf den Bildschirm. Die Eigenschaft Canvas müsste eigentlich existieren. Mit der Canvas-Eigenschaft Pixel (oder heißt es Pixels?) kannst du auf jeden Bildpunkt zugreifen. Das ist allerdings sehr Resourcen aufwändig. Du solltest dir als Alternative mal die Funktion ScanLine ansehen. :)

Chris
doubleq
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Sa 13.03.04 23:05 
Nöö... laut meiner D6Pers-Hilfe hat Screen keine Canvas...

Gruß DoubleQ