public class DwfPageEPlot extends DwfPage
Represents DWF page that implements EPlot interface
| Modifier and Type | Method and Description |
|---|---|
DwfWhipDrawable[] |
getDrawObjectsInRealWorldCoordinates()
Gets the collection of entities scaled to real-world units from resource with role '2d streaming graphics'.
|
Cad3DPoint |
getRealWorldMaxPoint()
Gets the maximum value of entities coordinates scaled to real-world units.
|
Cad3DPoint |
getRealWorldMinPoint()
Gets the minimum value of entities coordinates scaled to real-world units.
|
String |
getRealWorldUnits()
Gets the real-world scale units.
|
getEntities, getMaxPoint, getMinPoint, getName, getObjectId, getPageRotation, getPaperHeight, getPaperWidth, getUnitType, isDrawableLoadedpublic final String getRealWorldUnits()
Gets the real-world scale units. String label that indicates the unit of measure that scale represents when measuring a single logical coordinate.
Gets the real-world scale 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) { string unitsName =page.RealWorldUnits; } }
public final Cad3DPoint getRealWorldMaxPoint()
Gets the maximum value of entities coordinates scaled to real-world units.
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; } }
public final DwfWhipDrawable[] getDrawObjectsInRealWorldCoordinates()
Gets the collection of entities scaled to real-world units from resource with role '2d streaming graphics'.
Retrieves the collection of entities scaled to real-world units.string file = "ExampleFile.dwf"; DwfWhipDrawable[] result; 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) { result = page.DrawObjectsInRealWorldCoordinates; } } foreach (DwfWhipDrawable s in result) { Do something; }
public final Cad3DPoint getRealWorldMinPoint()
Gets the minimum value of entities coordinates scaled to real-world units.
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; } }
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.