Search found 4 matches
- 08 Jul 2008, 15:34
- Forum: CAD DLL
- Topic: CADImageDLL zoom extents in C#
- Replies: 11
- Views: 84799
Re: CADImageDLL zoom extents in C#
One solution i was thinking about is to get the value of a each pixel from the four edges and work my way inwards until i get to a black pixel and thus find the four edges of de bounding rectangle. Is this something that could work (either finding the pixel using the dll or finding it in the image r...
- 08 Jul 2008, 15:02
- Forum: CAD DLL
- Topic: CADImageDLL zoom extents in C#
- Replies: 11
- Views: 84799
Re: CADImageDLL zoom extents in C#
Yes, around the drawings there is a black rectangle by which this could be achieved. Your idea is to somehow find the four edges and calculate the drawingbox using that information? In what way can i detect those four edges?
- 08 Jul 2008, 13:39
- Forum: CAD DLL
- Topic: CADImageDLL zoom extents in C#
- Replies: 11
- Views: 84799
Re: CADImageDLL zoom extents in C#
Thank you for your reaction,
However this is only half of the solution. In order to set SetDrawingBoxCAD, i first have to know the size of the area where the actual drawing is (whether it is in or outside the standard drawable area). How can i do this?
However this is only half of the solution. In order to set SetDrawingBoxCAD, i first have to know the size of the area where the actual drawing is (whether it is in or outside the standard drawable area). How can i do this?
- 07 Jul 2008, 12:15
- Forum: CAD DLL
- Topic: CADImageDLL zoom extents in C#
- Replies: 11
- Views: 84799
Re: CADImageDLL zoom extents in C#
It has been a long time since the last post here, but recently i picked this matter up again and retried your sollution. However, it doesn't work as i hoped it would be. Let me begin by restating my problem: In Autocad a drawing has a predefined drawable area which the Cadimagedll recognized as the ...