Google Answers Logo
View Question
 
Q: an indexed png image with all inclosed area's white and with unique index values ( No Answer,   0 Comments )
Question  
Subject: an indexed png image with all inclosed area's white and with unique index values
Category: Computers > Graphics
Asked by: i0scan-ga
List Price: $10.00
Posted: 05 Dec 2005 20:56 PST
Expires: 23 Dec 2005 12:12 PST
Question ID: 601994
In this php/image map tutorial
http://www.nyphp.org/content/presentations/GDintro/gd17.php , the
author notes at the bottom, "Note that in the original image to the
right, even though each state is colored with a different index, all
the indexes refer to the value of white." How do I do this with gimp?
I know how to convert an image to "indexed mode" using gimp, but I
need all of the spaces in my map to have different index value and
remain white but I am not sure how to do this or set this value using
gimp.

Clarification of Question by i0scan-ga on 06 Dec 2005 09:02 PST
Steps to create an indexed png, are,... (using gimp) open gimp, File >
New > OK then Image > Mode > Indexed. Open the color map by selecting
Dialogs > Color Map. I can add all up to 256 colors, by simply adding
the colors and changing the indexes.  I want all my fill colors to be
white, but have different indexes.  However, If you take my
theoretical square drawn in black with the pencil tool, divided in to
halves, and try to fill one side with White, index 3 and the other
side with White, index 4 (from the colormap) then use the
eyedropper-color picker, you will see both halves have a white value
of index 0. Again, to make my picture like the usa.png example in the
tutorial above, each enclosed area should be white, but have different
indexes for use in a php/graphical script.  So, to clarify, I need to
know how to get each half of a square with a line through the middle
be white with different inex values. How do I do this?
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy