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

If you have any comments or questions about our developing tools, please do not hesitate to contact us at this forum

Moderators: admin, SDS, support

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

Postby pateketu » 09 May 2011, 16: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
pateketu
 
Posts: 6
Joined: 05 May 2011, 10:53

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

Postby support » 10 May 2011, 09: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.
Please post questions to the forum or write to support@cadsofttools.com
support
 
Posts: 2226
Joined: 30 Mar 2005, 08:36
Location: Russia

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

Postby 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);
pateketu
 
Posts: 6
Joined: 05 May 2011, 10:53

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

Postby support » 10 May 2011, 11: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.
Please post questions to the forum or write to support@cadsofttools.com
support
 
Posts: 2226
Joined: 30 Mar 2005, 08:36
Location: Russia


Return to CADImport.NET + DXFExport.NET

Who is online

Users browsing this forum: No registered users and 0 guests

cron