Image properties ?
Posted: 12 Dec 2005, 15:42
Is it possible to have the image properties ?
For exemple, get paper size (A0..A4 ? )
Thx
ps: under Delphi 7
For exemple, get paper size (A0..A4 ? )
Thx
ps: under Delphi 7
CADSoftTools - AutoCAD DWG DXF HPGL (PLT) SVG CGM STEP IGES STL SAT viewers, converters and developer tools. Delphi and C# source code.
https://cadsofttools.com/forum/
Code: Select all
var
vRect: TFRect;
...
begin
...
vRect := TsgDXFImage(sgPaintBox.Picture.Graphic).Extents;
ImageWidth := vRect.Right - vRect.Left;
ImageHeight := vRect.Top - vRect.Bottom;
...
end;
Code: Select all
TsgDXFImage(sgPaintBox.Picture.Graphic).CurrentLayout.PlotSettings.PlotPaperUnits = 0
Code: Select all
ImageWidth := TsgHPGLImage(sgPaintBox.Picture.Graphic).MMWidth / 100;
ImageHeight := TsgHPGLImage(sgPaintBox.Picture.Graphic).MMHeight / 100;