Zooming in ASP.NET (CADImage.Painter.Scale)

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
pateketu
Posts: 6
Joined: 05 May 2011, 13:53

Zooming in ASP.NET (CADImage.Painter.Scale)

Post by pateketu » 09 May 2011, 19:09

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

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Zooming in ASP.NET (CADImage.Painter.Scale)

Post by support » 10 May 2011, 12:00

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.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

pateketu
Posts: 6
Joined: 05 May 2011, 13:53

Re: Zooming in ASP.NET (CADImage.Painter.Scale)

Post by pateketu » 10 May 2011, 12: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);

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Zooming in ASP.NET (CADImage.Painter.Scale)

Post by support » 10 May 2011, 14:31

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.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply