Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 26-02-2009
Member
 
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?
Reply With Quote
  #2  
Old 26-02-2009
Member
 
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
Reply With Quote
  #3  
Old 26-02-2009
Member
 
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!
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 12:26 AM.