Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What Color (Hex Number) was used
Message
From
23/05/2002 18:13:25
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00660631
Message ID:
00660805
Views:
10
>I have a few gifs that I would like to use in an application, but I can't seem to figure out what background color to use with the gifs. Does anyone know of a way for me to somehow figure out what is the HEX color number to use. I was thinking of a utility that I could bring the gif into that had a way to tell me what color was being used by certain portions of the gif.

Gifs use 256 color palette (or less - not all of it is used each time); depending on software you use you can select one of the colors to be the transparent color. You can also tweak any of these colors to any value you want.

So it would depend what you want; if you want parts of the gif to be transparent, just pick any color which won't be used anywhere else on the picture and declare that one to be the transparent one. If you need a specific color, you can use VFP's getcolor() to retrieve the color number for any color you want. Then display that number as VFP's BGR combination and chop it into a RGB string:
cHexBgr=transform(getcolor(), "@0")
cHexRGB=subs(cHexBGR,9,2)+subs(cHexBGR,7,2)+subs(cHexBGR,5,2)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform