Jump to content

Pixel Change


Recommended Posts

@tommeke228

Little search on example script forum and :

pict(300,300)

Func drawpix($dc,$x,$y,$color)
    DllCall ("gdi32.dll", "long", "SetPixel", "long", $dc[0], "long", $x, "long", $y, "long", $color)
EndFunc

Func pict($x,$y)
    $dc= DllCall ("user32.dll", "int", "GetDC", "hwnd", "")
    drawpix($dc,$x,$y,0x000000FF)
    DllCall ("user32.dll", "int", "ReleaseDC", "hwnd", 0,  "int", $dc[0])
EndFunc

Cheers, FireFox.

Edited by FireFox
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...