Hi all!
I'm trying to draw few images on top of one image (using GDI+)- which if you do it all at once is not a problem, but I want the images to appear one at a time-
for the example here: there is one image on the top of the webPage at all times- a house picture, when you click on one of the buttons- a flower is added on the house image (it's a png so the background is transparent) when you click on a different button - a tree is added on the house image etc... but if you click on a different flower button the first flower will dissappear and you will see only the new flower (but you will still see the other stuff you added- like trees and people...)
I used the following code:
Response.ContentType=("image/jpeg");
objHouse = new Bitmap(housePath);
g = Graphics.FromImage(objHouse );
to view the house and a method:
Bitmap flower1= new Bitmap(imagePath);
g.DrawImage(flower1, new Point(10, 50));
objHouse .Save(Response.OutputStream, ImageFormat.Jpeg);
when I use the same graphics object g. it keeps refreshing and I cannot seem to manage to draw more than one picture on top of the house at a time (and the buttons keep disapeering)
I could really use some Help! Thanks!!!