Solved

point

Posted on 2002-04-16
2
129 Views
Last Modified: 2010-05-02
I retrieve the color of a pixel with the point command...
problem though is that i get a strange large number like 543005 or something like that.

Is it possible to change this number into a html color, like: #FFFFFF for white

??
0
Comment
Question by:michael123199
2 Comments
 
LVL 1

Accepted Solution

by:
olx earned 50 total points
Comment Utility

HEX(StrangeNumberObtained) ?

in vb the # stands for double precision, but in html have no idea
0
 
LVL 44

Expert Comment

by:Arthur_Wood
Comment Utility
Actually what you want to do is to PARSE that number into its three parts: Red + 256*(Green+ 256*Blue))

red = 29 = #1D (Hex)
Green = 73 = #49 (Hex)
Blue = 8 = &08 (Hex)

so the hex string would be #08491D or #BBGGRR

you can also get this with the HEX() function:

Hex(543005) = 8491D = #BBGGRR ==> BB=08, GG=49, RR=1D

Arthur Wood
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now