• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 216
  • Last Modified:

reserving specific colors in 256 color set

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
Axter
Asked:
Axter
  • 6
  • 4
1 Solution
 
weedCommented:
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
 
AxterAuthor Commented:
>>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
 
weedCommented:
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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
AxterAuthor Commented:
>>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
 
AxterAuthor Commented:
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
 
weedCommented:
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
 
AxterAuthor Commented:
>>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
 
AxterAuthor Commented:
>>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
 
AxterAuthor Commented:
Thanks
0
 
weedCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now