CadImage.Draw

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
hachiman
Posts: 4
Joined: 02 Sep 2010, 11:17

CadImage.Draw

Post by hachiman » 02 Sep 2010, 11:32

Hi
I'm just starting using the CADImport.Net and I have a question, on which unfortunately I didn't manage to find an answer reading the help file and this forum.
My question is related to the method CADImage.Draw(Graphics gr,RectangleF rect,Region visReg).
What is the role of visReg here ?
I'm trying to read one big DWG file and I want to place it in my CadPictureBox , but I don't want to stretch it in the area , but to view only a region of the file with size of my cadpicturebox and also to have this box scrollable.I'm trying to set visual region with size equal to the size of my picture box , but it doesn't help.
Please sudgest what i can do in order to accomplish this task.

Best Regards

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

Re: CadImage.Draw

Post by support » 06 Sep 2010, 11:33

Hello.
A region is a portion of the display area of an output device. Regions can be simple (a single rectangle) or complex (a combination of polygons and closed curves). Regions can be used for clipping and hit testing. Demo code doesn't illustrate using regions. However for your task using regions not necessary. Please see Viewer demo code and the following forum topic:
http://www.cadsofttools.com/forum/viewt ... =15&t=1674
Also please note, regions not supported start from version 7.2.5. CADImage.Draw must be called with System.Windows.Forms.Control object instead the Region object.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply