Solved

reserving specific colors in 256 color set

Posted on 2004-09-14
10
198 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adobe photoshop tool bar very small 6 151
Upgrading from photoshop CS2 to CS6 4 337
windows 10 how make picture as desktop background 2 62
Need Graphic Design work done 2 96
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…
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…

772 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