ACASystems.com: Provide state-of-the-art image capture, screen capture, video capture and audio capture software
Provide state-of-the-art image capture, screen capture, video capture and audio capture software
Download ACA Capture Pro - professional screen capture software
Home Download Buy Now Partners Contact    
 » Home > 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
  • ACA Systems
            Screenshot
            Free Download
            FAQ
            History
        » FAQ
        » Maillist

    Support
    Any Question? Leave a message

    Maillist
    Would you like be notified of all future news & updates regarding our products? Please enter your E-mail to join the mailing list!

    Join Remove