Demonic Posted November 18, 2007 Share Posted November 18, 2007 (edited) I couldn't find a function that lets me color certain pixels to a different color (Hopefully a transparent/alpha color) on a window. If anyone could shed some insight on a function like this, it'd be appreciated. Already looked through the help file, couldn't find one. Bah.. Edited November 18, 2007 by Arakard Link to comment Share on other sites More sharing options...
Zedna Posted November 18, 2007 Share Posted November 18, 2007 Func SetPixel ($handle, $x, $y, $color) $dc= DllCall ("user32.dll", "int", "GetDC", "hwnd", $handle) $setpixel= DllCall ("gdi32.dll", "long", "SetPixel", "long", $dc[0], "long", $x, "long", $y, "long", $color) $realesedc= DllCall ("user32.dll", "int", "ReleaseDC", "hwnd", 0, "int", $dc[0]) EndFunc Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now