Solved

reserving specific colors in 256 color set

Posted on 2004-09-14
10
200 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Flattening and scaling in Adobe Illustrator CC 2015 4 190
Illustrator Rope Brush 6 167
Mac neophyte...printer issue... 13 123
Workstation graphics card or Consumer 5 74
HOW TO CREATE A WEB 2.0 IMAGE WITH A REFLECTION I would like to start by saying I know Web 2.0 isn't a style. It is actually the practice of information sharing or  collaboration on the Web. It is also associated with the technology that is used …
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 tutorial viewers will learn how to correct colors in Photoshop using the Levels adjustment Open a photo for editing in Photoshop: Begin by creating a new adjustment layer by going to Layer > New Adjustment Layer > Levels: Select "OK" on the …
In this tutorial viewers will learn how to create layer styles in Photoshop to easily apply effects to multiple items. Open a document in Photoshop: Apply layer styles to a layer by right clicking the layer in the Layers window and selecting "Blendi…

737 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