Zooming in ASP.NET (CADImage.Painter.Scale)
Moderators: SDS, support, admin
Zooming in ASP.NET (CADImage.Painter.Scale)
I was told that, it is possible to zoom in ASP.NET but no example is available for it, I am just wondering to do zooming in ASP.NET, do I use CADImage.Painter.Scale method? is there a example availble of the usage of the method, example does not need to be ASP.NET based but windows form based example will also give me an idea of how to use the method, I have no idea what DPoint and scale parameter means in the CADImage.Painter.Scale
Re: Zooming in ASP.NET (CADImage.Painter.Scale)
Hello.
Zooming a CADImage object refers to control's functionality, please see any form-based demo. The CADImage.Painter.Scale method can't be used for such task. ASP.NET web page allows browser zooming (Ctrl + mouse wheel).
Alexander.
Zooming a CADImage object refers to control's functionality, please see any form-based demo. The CADImage.Painter.Scale method can't be used for such task. ASP.NET web page allows browser zooming (Ctrl + mouse wheel).
Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: Zooming in ASP.NET (CADImage.Painter.Scale)
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);
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);
Re: Zooming in ASP.NET (CADImage.Painter.Scale)
You're correct, there is no real zooming on ASP.NET web page - until ASP.NET control will be used for CADImage. Possibly we will implement such functionality in the future library versions.
Alexander.
Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support