I would like my website visitors to be able to create and download their own wallpapers with a given set of images.
I need code to process the final .JPG image for the wallpaper.
You only need to dynamically create a .JPG image using a given set of images.
Here is the code I need in .NET 2.0:
1) The code needs to accept 7 params:
* The WIDTH of the final (.JPG) to be produced.
* The HEIGHT of the final (.JPG) to be produced.
We will provide the width and the height of the dynamic image to be produced. It could be 800 x 600, 1025 x 768 and 1280 x 1024 or any other size.
* An array of the images (.PNGs) names.
* An array of the images DEPTH so that they are placed in that relative DEPTH on the final image.
Depth=0 thru 10000 where 0 will be the background image. Higher the depth number, more Top/visible it will be.
* An array of the images X axis location. -- all the X location numbers will be relative to the size of the image to be produced. (0 will be the LEFT most point.)
* An array of the images Y axis location. -- all the Y location numbers will be relative to the size of the image to be produced. (0 will be the TOP most point.)
2) the code needs to output a .JPG image and prompt the website client to save it to their local machine.
No dynamic JPGs should be saved on the server.
A sample call with 1 background image and 3 extra images on top of it would be:
[url removed, login to view];JPGHeight=600&ArrayNames=[url removed, login to view],[url removed, login to view],[url removed, login to view],image3.png&ArrayDepths=0,100,5,10&ArrayX=0,20,200,650&ArrayY=0,10,150,50
A few things to keep in mind:
* NO Database involved
* Should be in .NET 2.0
* After the .JPG image is produced, the browser needs to prompt the
client to download the JPG image.
* The dynamic image should NOT be saved anywhere on the server.
It should be deleted or garbage collected dynamically after the user has downloaded it.
* You do NOT need to worry about the Front end for this application. only the abode described processing of the .JPG is needed.
please feel free to ask any questions.