Results 1 to 3 of 3

Thread: How to convert an RGB value to a long or a long to RGB?

  1. #1
    Join Date
    Jan 2009
    Posts
    19

    How to convert an RGB value to a long or a long to RGB?

    Hi,

    How to convert an RGB value to a long or a long to RGB?

  2. #2
    Join Date
    Jan 2009
    Posts
    36

    Re: How to convert an RGB value to a long or a long to RGB?

    Try this!
    Code:
    'Add 1 Command Button to your form.
    'Insert the following code to your form:
    
    Private Sub Command1_Click()
    r = Val(InputBox$("Red Value"))
    B = Val(InputBox$("Blue Value"))
    G = Val(InputBox$("Green Value"))
    Lng$ = B * 65536 + G * 256 + r
    MsgBox Lng$
    End Sub

  3. #3
    Join Date
    Jan 2009
    Posts
    9

    Re: How to convert an RGB value to a long or a long to RGB?

    If you don't understand above example then try this demo!

    http://www.buygold.net/v02n04/v02n04.html

    I hope this helps you!

Similar Threads

  1. How long data on CD or DVD will last?
    By RajiI in forum Hardware Peripherals
    Replies: 3
    Last Post: 20-12-2011, 03:12 PM
  2. How long will a HDD last if not used much?
    By Williamss in forum Hardware Peripherals
    Replies: 4
    Last Post: 02-12-2010, 12:36 PM
  3. How long does os 4.0 take to load
    By Centaurs in forum Portable Devices
    Replies: 6
    Last Post: 13-07-2010, 05:57 AM
  4. How to Convert IP Address to Long in ADO?
    By technika in forum Software Development
    Replies: 5
    Last Post: 16-02-2010, 10:15 PM
  5. Usually 600 watt PSU will last for how long?
    By Zoey Mod in forum Hardware Peripherals
    Replies: 7
    Last Post: 15-01-2010, 11:30 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,408,235.57347 seconds with 16 queries