RealWorldMaxPoint
Contents
[
Hide
]DwfPageEPlot.RealWorldMaxPoint property
Gets the maximum value of entities coordinates scaled to real-world units.
public Cad3DPoint RealWorldMaxPoint { get; }
Return Value
The maximum value of entities coordinates scaled to real-world units or ’null’ value, if resource does not contain the ‘Units’ operand.
Examples
Gets width and height of image scaled to real-world units.
string file = "ExampleFile.dwf";
using (FileStream inStream = new FileStream(file, FileMode.Open))
using (DwfImage image = (DwfImage)Image.Load(inStream))
{
DwfPageEPlot page = image.Pages[0] as DwfPageEPlot;
if (page != null)
{
Cad3DPoint maxPoint = page.RealWorldMaxPoint;
Cad3DPoint minPoint = page.RealWorldMinPoint;
double width = maxPoint.X - minPoint.X;
double height = maxPoint.Y - minPoint.Y;
}
}
See Also
- class Cad3DPoint
- class DwfPageEPlot
- namespace Aspose.CAD.FileFormats.Dwf.EPlotInterface
- assembly Aspose.CAD