Jump to content
Software FX Community

Re: Palette Colors


User (Legacy)
 Share

Recommended Posts

Thanks for the pie chart idea.  It may work.

If not, do you or anyone else know the format in the registry of the

palettes? The actual colors do not start at the very top..there appears to

be some sort of a header in there as they all match to a certain extent...

Thanks,

Abe

"SteveT" <stephent@compassadv.com> wrote in message

news:$dJUjvhOAHA.1460@sfxserver.softwarefx.com...

I can tell you the palettes are stored in the registry:

[HKEY_LOCAL_MACHINE\Software\Software FX, Inc.\Chart FX\Palettes]

They are stored in Hex numbers that's a bit daunting (but not impossible) to

decode. Basicly RGB(R,G,B) values stored in hex format.

Lots easier to create a pie chart with 49 sections and for each palette loop

through the points and save off the color value in a Color Table

Fields like PALETTENAME, POSITION, COLORVALUE.

Do this with a Pie chart (example in VBA, adjust for your purpose/platform):

For i = 0 To nPoints - 1

Debug.Print ChartFX1.Color(i)

Next

First 4 points of various Palettes:

"ChartFX 3.0"

65280 (Green)

16711680 (Blue)

255 (Red)

16711935 (Violet)

"Nature"

12638144

11593903

10535071

9429135

"Electric Fire"

3129599

3117296

48127

1089520

Steve

Abram Krebs <duckwood@gamry.com> wrote in message

news:#6C1s3fOAHA.1460@sfxserver.softwarefx.com...

> Hello,

>

> I maintain a collection of series in my program which basically mimics the

> ChartFX series. The big difference however, is that I allow the user to

> hide a series... when I do this, I wipe all the data in the chart and put

> back only the pertinent data. Is there a way I can control the colors to

> make them the same. In other words, if I add two series, and the first is

> green and the second is blue..when I hide the first one, the second one

> turns green...

>

> I want to keep track of the colors...so what I need is information as to

> what the Nth color in the palette would be...how can I get this

> information?

>

> Cheers,

> Abe Krebs

>

>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...