Solved

reserving specific colors in 256 color set

Posted on 2004-09-14
10
197 Views
Last Modified: 2011-08-18
I'm trying to create 256 color PCX files, while reserving the first 16 colors for text colors.

How can I save my image as a PCX file, and reserve the first 16 colors for a primary set of colors?

These 16 colors are not being displayed in the PCX file, but are required in order to display text on the target application.

The images I have do not use the full 256 colors, and infact use only about 32-to-200 colors.
0
Comment
Question by:Axter
  • 6
  • 4
10 Comments
 
LVL 30

Expert Comment

by:weed
ID: 12056068
Change your color mode to Indexed Color. When the options box pops up choose "Custom" for the palette. There you can edit the exact palette to be used. Remember to save that palette from the same options box so you can load it later onto another image.
0
 
LVL 30

Author Comment

by:Axter
ID: 12057858
>>There you can edit the exact palette to be used.

Sorry, but that method doesn't work.  I already tried that method.
When the palette is modified, it automatically changes the color of the current image.

I need to be able to load the image and still keep the first 16 colors set to the same color.

0
 
LVL 30

Expert Comment

by:weed
ID: 12057922
If you limit your image to 256 colors or less, using a set color palette, it MUST change the color of the current image. You dont have any other colors to use. You need to create a custom palette, and save it, then be able to load it and apply it to other images.
0
 
LVL 30

Author Comment

by:Axter
ID: 12058004
>>If you limit your image to 256 colors or less, using a set color palette, it MUST change the
>>color of the current image.
I'm aware of that.

My target image does not use all 256 colors.  In fact most of the images only use 32-200 colors.

So I do have index values to play with.
The problem is getting the images loaded so that they only occupy the color index above the first 16.

>>You need to create a custom palette, and save it, then be able to load it and apply it to
>>other images.

This does not work for several reasons.
If I already have an image, and I load the palette, it will change the current image color, which is not what I want.

If I try to paste the image after the palette is loaded, the image is displayed only using the previously loaded palette.
0
 
LVL 30

Author Comment

by:Axter
ID: 12058119
Things I've already tried:

Method A:
Open target PCX file.
Load desired palette via Image->Mode->Color-Table
*Fails, since current image aquites lower palette modifications.*

Method B:
Create dummy image and load desired palette.
Paste image.
*Fails since Image looks granular, and does not retain original colors.

Method C:
Create dummy image and load desired palette.
Change Image-Mode to RGB
Paste image.
Change Image-Mode Color-Index (Local Perceptual) option
*Fails because first 16 index colors are replaced with new palette.



0
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

 
LVL 30

Accepted Solution

by:
weed earned 500 total points
ID: 12058139
You dont have to use all 256 colors, just get rid of the ones you dont want.

In the Indexed Color window, select Adaptive, thatll get you a closest match, then hit "forced" to force the first 16 or so colors to whatever you want.
0
 
LVL 30

Author Comment

by:Axter
ID: 12058190
>>In the Indexed Color window, select Adaptive, thatll get you a closest match,
>>then hit "forced" to force the first 16 or so colors to whatever you want.

What do you mean, by hit force?
On my version of Photoshop, Forced is a combo selection field.

Will this work even if the first 16 colors are not on the current image?
0
 
LVL 30

Author Comment

by:Axter
ID: 12058282
>>In the Indexed Color window, select Adaptive, thatll get you a closest match, then
>>hit "forced" to force the first 16 or so colors to whatever you want.

I got it to work by selecting custom from the combo Forced field.
Then load target palette.

Seems to be a bug in Photoshop, because if I don't reselect the custom option, then I don't get the second window to load the palette.
0
 
LVL 30

Author Comment

by:Axter
ID: 12058283
Thanks
0
 
LVL 30

Expert Comment

by:weed
ID: 12058288
Forced is a menu in the Indexed Color options box. Use the Custom entry in the Forced menu. Yes, you can assign any colors you want to be forced, regardless of whether theyre in the current image or not.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Introduction When sharing photos, especially via e-mail, the large resolution images that most cameras take today make for extremely large file sizes. The time required to upload these files to forums, send in e-mails, post to blogs or even placi…
In this article, I'll explain how to change the color of a selection in Photoshop. I'm sure there are a couple different ways to do this in photoshop, but this is my preferred method in Photoshop. I am using Photoshop CS6 and I will be adjusting the…
In this tutorial viewers will learn how to create a postcard text effect in Photoshop and get an introduction to Layer masks Use magic wand to select the "inner" part of the letters: Create a new layer and fill the selected area with black: Go back …
In this tutorial viewers will learn a few layer organization tricks and tips to improve their workflow in Photoshop. Open a multi-layer document in Photoshop: View all your layers by going Window > Layers:  To make sure your layers can be identified…

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

26 Experts available now in Live!

Get 1:1 Help Now