VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Advance Color Picker

Soumen Bhattacharya  (1 Submission)   Complete Applications   Visual Basic 5.0   Advanced   Wed 3rd February 2021

A code to slice and dice the "Color Cube" in various ways. Select any color on the screen and get the RGB, HSL, color value and HEX value.

Assumes
Two important functions are borrowed, and credits are given to the original writer. There are no comments, but anyone with minimal knowledge of VB should be able to understand the code.

API Declarations
Public Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Public Declare Function GetPixel Lib "gdi32" (ByVal hDC As Long, ByVal X As Long, ByVal Y As Long) As Long
Public Declare Function GetDesktopWindow Lib "user32" () As Long
Public Declare Function GetWindowDC Lib "user32" (ByVal hWnd As Long) As Long
Public Type POINTAPI
X As Long
Y As Long
End Type

Rate Advance Color Picker (23(23 Vote))

Download Advance Color Picker

Advance Color Picker Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters