J
Jeronimo Bertran
I have an aspx page that shows a complex image with several objects that
are sensitive to mouseover events. The information about the objects in
the image is obtained from a database and complex calculations are
performed for each object to determine the position within the image. To
render the image I created an aspx page that uses the following code to
render the image:
Response.ContentType = "image/jpeg";
bmp.Save(Response.OutputStream, ImageFormat.Jpeg);
For the mouseover I am using a usemap in the image, and I am calculating
each one of the map areas by constructing the map programatically:
<area onmouseover='functiontocall(" + count + ")' >
My problem is that I have the creation of the map areas in the main aspx
page and the rendering of the image on the rendering page. Currently I
have to go through the entire process of determining the position of each
object twice by going to the database and performing calculations....once
to create the map and another time to render the image. Is there a way to
do this in a single pass? For instance, to have the rendering page store
the map definition so that the parent page can use it???
Thanks!!
Jeronimo
are sensitive to mouseover events. The information about the objects in
the image is obtained from a database and complex calculations are
performed for each object to determine the position within the image. To
render the image I created an aspx page that uses the following code to
render the image:
Response.ContentType = "image/jpeg";
bmp.Save(Response.OutputStream, ImageFormat.Jpeg);
For the mouseover I am using a usemap in the image, and I am calculating
each one of the map areas by constructing the map programatically:
<area onmouseover='functiontocall(" + count + ")' >
My problem is that I have the creation of the map areas in the main aspx
page and the rendering of the image on the rendering page. Currently I
have to go through the entire process of determining the position of each
object twice by going to the database and performing calculations....once
to create the map and another time to render the image. Is there a way to
do this in a single pass? For instance, to have the rendering page store
the map definition so that the parent page can use it???
Thanks!!
Jeronimo