English
Source / code snippets

inquire Reading colours Getpixel Pixel

 

Frank
Abbing
Farbcodes read on the whole Screen:
DEF GetCursorPos(1) ! user32 , GetCursorPos
Declare point#, Text$, x&, y&, farbe&, r&, g&, b&
Dim point#,4
Cls
LoadBmp background.bmp,0,0;0
SetTimer 30

While 1

    WaitInput
    Case %key=2:Break
    GetCursorPos(point#)
    x&=Long(point#,0)
    y&=Long(point#,4)
    StartPaint 0
    farbe&=GetPixel(x&,y&)
    r&=GetRValue(farbe&)
    g&=GetGValue(farbe&)
    b&=GetBValue(farbe&)
    Text$=ruddy: +Str $(r&)+, green: +Str $(g&)+, blue: +Str $(b&)
    SetText %hwnd,Text$
    EndPaint

Endwhile

KillTimer
Dispose point#
 
04/15/08  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.441 Views

Untitledvor 0 min.
Sven Bader03/07/21
RudiB.03/15/20
Georg11/17/15
Andre Rohland02/17/15
More...

Themeninformationen

this Topic has 1 subscriber:

Frank Abbing (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie