PrinterLayoutHelper¶
Namespace: ThinkGeo.Core
Converts between the units a printer layout is measured in.
public static class PrinterLayoutHelper
Inheritance object → PrinterLayoutHelper
Remarks:
Useful when writing a custom PrinterLayoutAsyncLayer, which positions itself in PrintingUnit.Point - 1/96 inch, not the typographic 1/72.
Methods¶
ConvertLength(double, PrintingUnit, PrintingUnit)¶
Converts a linear measurement from one PrintingUnit to another.
public static double ConvertLength(double length, PrintingUnit fromUnit, PrintingUnit toUnit)
Parameters¶
length double
The value to convert.
fromUnit PrintingUnit
The unit that is currently expressed in.
toUnit PrintingUnit
The unit to convert the value to.
Returns¶
double
The converted length expressed in the requested unit.
GetPointsPerGeographyUnit(GeographyUnit)¶
Gets the number of printer points that represent a single unit of the specified map projection.
public static double GetPointsPerGeographyUnit(GeographyUnit mapUnit)
Parameters¶
mapUnit GeographyUnit
The geographic unit used by the map.
Returns¶
double
The number of points per geography unit.
Exceptions¶
ArgumentOutOfRangeException
Thrown when the unit is unsupported.
A(GeoCanvas)¶
internal static double A(GeoCanvas )
Parameters¶
`` GeoCanvas
Returns¶
A(GeoCanvas, double)¶
internal static double A(GeoCanvas , double )
Parameters¶
`` GeoCanvas
`` double
Returns¶
a(GeoCanvas)¶
internal static double a(GeoCanvas )
Parameters¶
`` GeoCanvas
Returns¶
A(GeoCanvas, RectangleShape)¶
internal static RectangleShape A(GeoCanvas , RectangleShape )
Parameters¶
`` GeoCanvas
Returns¶
A(GeoCanvas, string, GeoFont, PointShape)¶
internal static PointShape A(GeoCanvas , string , GeoFont , PointShape )
Parameters¶
`` GeoCanvas
`` string
`` GeoFont
`` PointShape
Returns¶
A(GeoCanvas, string, GeoFont)¶
internal static double A(GeoCanvas , string , GeoFont )
Parameters¶
`` GeoCanvas
`` string
`` GeoFont
Returns¶
A(PointShape, PointShape, GeographyUnit, ProjectionConverter, DistanceUnit)¶
internal static double A(PointShape , PointShape , GeographyUnit , ProjectionConverter , DistanceUnit )
Parameters¶
`` PointShape
`` PointShape
`` DistanceUnit