VB6 Finding the RGB values of a color

Last update on June 8, 2009 10:21 AM by deri58
Published by deri58

VB6 Finding the RGB values of a color









Dim R as integer
Dim G as integer
Dim B as integer

Sub FindRGB(Col As Long)
R = &HFF& And Col
G = (&HFF00& And Col ) \ 256
B = (&HFF0000 And Col ) \ 65536
End Sub


Note: Here is a link to more than 500 color description:
http://cloford.com/resources/colours/500col.htm
Best answers for « VB6 Finding the RGB values of a color » in :
[Bash]Parameters Show[Bash]Parameters Intro Example 1 Example 2 Initialize parameters Examples Example 3 Intro You can provide a script on the command line and arguments also known as parameters for its implementation. There are two categories of...
Know the Hexadecimal code of a color ShowKnow the Hexadecimal code of a color What is a Hexadecimal code What is a Hexadecimal code In mathematical terms, a hexadecimal (hex) is a numeral system consisting of a base, of 16. It uses sixteen distinct symbols: Numeric symbols:...
[VB6] Making a form transparent Show[VB6] Making a form transparent Getting started Restriction In a module As used in a form Getting started Here is a brief explanation on how to use the transparency based upon: The desired format, including controls, according to a...
The Colour Table ShowCoding colours In HTML, colours are defined by three hexadecimal numbers, which represent the Red, Green, and Blue tones (using RGB coding) of the chosen colour. This is the syntax for coding a colour in HTML: color="#RRGGBB" RR, GG and BB each...
HTML forms ShowForms Interactive forms let web page authors give their pages interactive elements, such as for receiving messages from their readers, much like the reply cards found in some magazines. The reader enters information by filling in fields or clicking...
RGB coding ShowRGB coding The RGB coding (Red, Geen, Blue), developed in 1931 by the International Lighting Commission (Commission Internationale de l'Eclairage, CIE) consists in representing the colour space with three monochromatic rays, with the following...