by pateketu » 10 May 2011, 09:44
Thanks for the reply, doing Crtl + in browser will obviously increase the size of the image but that is not zooming in real sense, Image will get distorted as it is a raster image (jpeg, png etc),
I guess there is no real zooming when generating an image and displaying it over the web, other than you do a round trip to the server and generate a new image with new Height and width every time zooming needs to be done
i.e. generate a new Rectangle and use that rectangle in SaveToStream or SaveToFile method
System.Drawing.RectangleF rect = new System.Drawing.RectangleF((float)left, (float)top, (float)width, (float)height);