Reputation: 3106
I have a map of Europe, and what I want to do is have each country of a colour depending of some variables. I display them correctly as separate .gif's, but I'd like to create a unique gif so it can be downloaded as 1 image.
Is it possible to do with ASP?
Thank you very much :)
Upvotes: 0
Views: 640
Reputation:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=8626&lngWId=4
I wrote that back in 2003, it'll do what you're asking with some tweaks, but I haven't touched ASP in at least 5 years :)
The idea is that the script opens a gif, reads out the color palette and re-writes it. It's currently configured to "adjust" the palette's HSL so that you can get different colored images (e.g. you could adjust a green image to blue or red), but you could just as easily selectively replace individual colors with whatever you want.
The idea then would that you would make each country it's own specific color and then replace that color with whatever you wanted later. As long as there are <= 256 total colors, you should be fine.
If you want something more complicated, try looking into imagemagick
Upvotes: 2
Reputation: 1420
There is nothing within ASP to do what you want. You would need some third party component to perform this type of task.
Upvotes: 0