Search found 12 matches
- 17 Dec 2014, 13:39
- Forum: CAD VCL
- Topic: Save Current View to image
- Replies: 9
- Views: 46430
Re: Save Current View to image
Thanks, I found the solution to the error. I needed to set the DrawingNavigator's Parent first. Your suggestion to use the DN ActualGraphic property is interesting. I wonder if there is also a way not have to use a DrawingNavigator at all, given that the zoomed image is already in a TsgImage control...
- 14 Dec 2014, 22:05
- Forum: CAD VCL
- Topic: Save Current View to image
- Replies: 9
- Views: 46430
Re: Save Current View to image
sorry to hijack this thread but I have the same problem. I have tried to print the resulting bmp to see what is going on but it is failing before that with an error on the line that assigns the picture from my TsgImage to the TsgDrawingNavigator so I can use your ActualGraphic function. The error is...
- 23 Apr 2009, 03:30
- Forum: CAD VCL
- Topic: growing a polyline
- Replies: 3
- Views: 18953
Re: growing a polyline
Hi Sergey, Thanks for the quick response. I figured that would be the way to do it but was hoping someone else already had code to do it or parts of it. e.g. finding parallel lines, intersection points, determining which side (outside the area) to place parallel line etc. My maths is a bit rusty her...
- 22 Apr 2009, 10:05
- Forum: CAD VCL
- Topic: growing a polyline
- Replies: 3
- Views: 18953
growing a polyline
Hi, Can anyone assist with the maths? I have a polyline (usually closed) that needs to be grown by a specified distance perpendicular to each edge line. Think of a house plan showing the outside walls. I need to grow this polyline by adding 600mm all round for the roof eaves to get the roof footprin...
printing
Hi, I have a TsgImage which also has an optional bmp overlay. I can print this ok using code similar to the examples. However, I also have some custom annotations drawn directly onto the canvas. These are drawn during the OnPaint event. What would be the best way to get these to print as well as the...
- 01 Nov 2006, 02:02
- Forum: CAD VCL
- Topic: blank dxf file
- Replies: 2
- Views: 12701
- 01 Nov 2006, 02:00
- Forum: CAD VCL
- Topic: Viewing and converting pdf files.
- Replies: 1
- Views: 9787
Viewing and converting pdf files.
Hi all,
I need a VCL component to load a pdf file and render it to a bitmap, preferably without writing out to disk. A pdf component that exposes the canvas may well do.
Any recommendations?
Thanks,
Steve
I need a VCL component to load a pdf file and render it to a bitmap, preferably without writing out to disk. A pdf component that exposes the canvas may well do.
Any recommendations?
Thanks,
Steve
- 01 Nov 2006, 01:55
- Forum: CAD VCL
- Topic: how to create empty TsgDXFImage
- Replies: 4
- Views: 18716
Thanks Sergey, That has helped but I found I also needed to: Img.GetExtents; Now it all works (including the calibration) the same as when I was exporting and importing from a temporary dxf file. I've also reduced the dummy rectangle down to 4 small corner markers so they are less obtrusive. Later, ...
- 27 Oct 2006, 17:18
- Forum: CAD VCL
- Topic: blank dxf file
- Replies: 2
- Views: 12701
blank dxf file
Hi Sergey. I've made some progress from my last problem. I found I had to export to a temporary dxf file, then import it back in. Is there a better way? I have the following 2 issues now: 1. The blank dxf isn't actually blank, so I'd like to get rid of the rectangle without losing the aspect ratio (...
- 26 Oct 2006, 08:11
- Forum: CAD VCL
- Topic: how to create empty TsgDXFImage
- Replies: 4
- Views: 18716
Thanks Sergey. I've incorporated some of your code, but still can't see how to assign the newly created TsgDXFImage to the sgPaintBox (class TsgImage). Here's the code for opening the file. It is the case where the file is a bitmap that I am trying to resolve. It fails on the line: sgPaintBox.Pictur...
- 25 Oct 2006, 13:10
- Forum: CAD VCL
- Topic: how to create empty TsgDXFImage
- Replies: 4
- Views: 18716
how to create empty TsgDXFImage
Hi Sergey, I would like to create a new blank TsgDXFImage - what is the minimum code to do this? (I don't want to loadfromfile). It can contain a rectangle of a certain size if it needs to have at least 1 entity. Also, in my sgImagePaint - I am overlaying a bmp, but I need the blank dxf to be sized ...
- 03 Nov 2005, 23:43
- Forum: CAD VCL
- Topic: calculating area of polyline
- Replies: 2
- Views: 12532
calculating area of polyline
There doesn't seem to be a property or method to show the area of a closed polyline.
Does anyone have any code to do this?
thanks,
Does anyone have any code to do this?
thanks,