GDI+ ColorMap question

XeroCode

Member
Joined
Nov 20, 2003
Messages
5
Location
Colorado
I hope someone can help me out with this (or another function that will take X color and replace it with X color) , this seems to be something that noone has really written about on the Net.

I am writing a design application in which a user can add custom text, colors, and images to what will eventually wind up on a T-Shirt or hat or whatever else.

I am currently using GDI+ to write out the User Text in specified font using this companies list of odd color choices. What I need to do is this: There is a database of about 250 PNG line art files and what I need to do is pull the user selected image into an aspx page and if the user has selected a print color of Light Green, for instance, I need the program to change the black lines to Light Green and vice versa.

Also, I need these images to be as close to print time as i can possibly make them. In the database is a list of HEX values that this company uses, I make a database connection in the script that writes out the Fonts that grabs the hex value and then i define my brush like this:

Dim solidBrush as New SolidBrush(ColorTranslator.FromHtml(strColor))

Is there a way to use this with ColorMap or another function similar?

Any help would be greatly appreciated!
 
Back
Top