VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Advance Color Picker

by Soumen Bhattacharya (1 Submission)
Category: Complete Applications
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (22 Votes)

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

Download Advance Color Picker

Download Advance Color Picker (8 KB)

Advance Color Picker Comments

No comments have been posted about Advance Color Picker. Why not be the first to post a comment about Advance Color Picker.

Post your comment

Subject:
Message:
0/1000 characters