>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)