Color of a screen pixel: Difference between revisions

m
→‎{{header|Python}}: fix indentation
(→‎{{header|Python}}: Added parenthesis to print to make examples python3 compatible (hopefully), minor fixes)
m (→‎{{header|Python}}: fix indentation)
Line 762:
long_colour = win32gui.GetPixel(i_desktop_window_dc, i_x, i_y)
i_colour = int(long_colour)
win32gui.ReleaseDC(i_desktop_window_id,i_desktop_window_dc)
return (i_colour & 0xff), ((i_colour >> 8) & 0xff), ((i_colour >> 16) & 0xff)
 
Anonymous user