Provide state-of-the-art image capture, screen capture, video capture and audio capture software
Home     Download     Purchase     Support     Contact     View my shopping cart
You are here: ACASystems » ACA Color Picker » FAQ » VB Color Code

What's VB Color Code?

In Visual Basic, colours are generally represented by an Integer, a hexadecimal number in 4 bytes. When specifying an explicit RGB color, the value has the following hexadecimal form:

  • 0xBBGGRR
  • 0x00BBGGRR

The low-order byte contains a value for the relative intensity of red; the second byte contains a value for green; and the third byte contains a value for blue. The maximum value for a single byte is 0xFF.

To create a color value in Vistual Basic, you can use the RGB function. The RGB function returns an Integer value representing an RGB color value from a set of red, green and blue color components:

RGB( _
   Red As Integer, _
   Green As Integer, _
   Blue As Integer _
)

Example codes:

Dim myColor As Integer
myColor = RGB(255, 0, 0 )  ' return the value for red, same as 0x000000FF
myColor = 0x000000FF  ' return the value for red.

ACA Color Picker Supports for Visual Basic Color Code

ACA Color Picker supports for capturing the color value of any screen pixel and displays its value in VB Color Code. To apply this feature, please do following steps:

  1. Launch ACA Color Picker. If you have not installed ACA Color Picker on your computer, please click here to free download the setup file, and then install it.
  2. Select Hex: VB on Format option. the Color List will show the picked colors in VB color code format, as it is shown in the following figure:
  3. ACA Color Picker Supports for VB color code

  4. You can also select RGB on Format option. It will show the picked color in RGB format, it can be used by RGB function, as it is shown in the following figure:
  5. ACA Color Picker Supports for vb color code

Free Trial ACA Color Picker Now | Buy ACA Color Picker Now

See Also

WinAPI Color References

  • Mincrosoft MSDN: Visual Basic - RGB function

  • Get discount alerts, new product information and technical articles:
    Name:
    Email:
    * Get 10% off your first order by joining our mailing list!
    * You may safely unsubscribe at any time!