PDA

View Full Version : Images generated from ASP


bipson
05-24-2006, 01:23 PM
Hi everyone !!

I've been trying to do this since a lot of time ago, and I can't. I tried books, websites, but nothing... It's almost impossible to find examples about this, and I'm very lost... Maybe someone who has seen this in some websites, or knows how to do it can bring me light on it....

It's like generate a gif or jpg from ASP. I'll explain myself (and sorry for my poor english!) :

There are some webs where you can choose a design for something (like a car, a shirt, or a helmet, etc) and then, when you've decided if you like it with stripes, or hoops, etc, you can set colours for each part of the design in RGB format. I mean, if you choose a shirt with stripes, then you have to set a colour for one stripe, and then for the others putting the three RGB values.

But, what I didn't find anywhere, and I don't know how it's done, is when you submit that info, and you can see the results with your design and your colours...

How it's done? If you try to make combinations of colours, and saving a gif for each combination, you should have billions and billions of archives on disk, so, they must be generated real-time. And after that, they are stored in a database for further process in another pages... Someone knows how to do this ?? :)

I've been like 4 or 5 months thinking about this subject and I don't find anything whatever I try... I think it must use some javascript, but i don't know how...

Thank you a lot in advance !!!! :) Very much appreciated

ghell
05-24-2006, 01:47 PM
Unless there is a COM component anywhere for it this would probably be mind-numbingly difficult to do from pure asp. Most of those sites will be using php or asp.net.

ASP would require a LOT of binary manipulation and adodb.stream s and an intemate knowledge of exactly how the binary file format of your output type works (simplest being a bmp, its relatively easy to find documentation on its header bytes and after that its just 3 bytes per pixel for a 24bit bmp (bytes for red, green, blue)

degsy
05-24-2006, 04:06 PM
Some links
http://www.google.co.uk/search?hl=en&q=asp+dynamic+images+-.net&meta=