Class allowing to convert different unit metrics. Converting is
based on Graphics object DPI settings that is why for differ
graphics settings must be created new instance. For example:
printers often has 300 and greater dpi resolution, for compare
default display screen dpi is 96.
Namespace: Spire.Pdf.GraphicsAssembly: Spire.Pdf (in Spire.Pdf.dll) Version: 7.9.2.0 (7.9.2.1020)
Syntax
| C# | Visual Basic | Visual C++ | F# |
public class PdfUnitConvertor
Public Class PdfUnitConvertor
public ref class PdfUnitConvertor
type PdfUnitConvertor = class end
Members
| All Members | Constructors | Methods |
| Member | Description | |
|---|---|---|
| PdfUnitConvertor()()()() | Initializes a new instance of the PdfUnitConvertor class | |
| PdfUnitConvertor(Graphics) | Initializes a new instance of the PdfUnitConvertor class | |
| PdfUnitConvertor(Single) | Initializes a new instance of the PdfUnitConvertor class | |
| ConvertFromPixels(PointF, PdfGraphicsUnit) | ||
| ConvertFromPixels(RectangleF, PdfGraphicsUnit) | ||
| ConvertFromPixels(SizeF, PdfGraphicsUnit) | ||
| ConvertFromPixels(Single, PdfGraphicsUnit) | ||
| ConvertToPixels(PointF, PdfGraphicsUnit) | ||
| ConvertToPixels(RectangleF, PdfGraphicsUnit) | ||
| ConvertToPixels(SizeF, PdfGraphicsUnit) | ||
| ConvertToPixels(Single, PdfGraphicsUnit) | ||
| ConvertUnits(Single, PdfGraphicsUnit, PdfGraphicsUnit) | ||
| Equals(Object) |
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.) | |
| Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| ToString()()()() |
Returns a String that represents the current Object.
(Inherited from Object.) |
Inheritance Hierarchy
System..::..Object
Spire.Pdf.Graphics..::..PdfUnitConvertor
Spire.Pdf.Graphics..::..PdfUnitConvertor