GraphicsUnitConverter Members

Enables you to convert values that are calculated in some measure units to different measure units.

Constructors

Name Description
GraphicsUnitConverter() Initializes a new instance of the GraphicsUnitConverter class with the default settings.

Methods

Name Description
Convert(MarginsFloat, Single, Single) static
Convert(MarginsF, GraphicsUnit, GraphicsUnit) static Adjusts the document margins calculated for the specified unit of measure according to a new unit of measure.
Convert(MarginsF, Single, Single) static Adjusts the document margins calculated for the specified DPI according to a new DPI.
Convert(RectangleDF, GraphicsUnit, GraphicsUnit) static Adjusts the location and size of a rectangle calculated for the specified unit of measure according to a new unit of measure.
Convert(RectangleDF, Single, Single) static Adjusts the location and size of a rectangle calculated for the specified DPI according to a new DPI.
Convert(Point, GraphicsUnit, GraphicsUnit) static Adjusts the coordinates of a point calculated for the specified unit of measure according to a new unit of measure.
Convert(Point, Single, Single) static Adjusts the coordinates of a point calculated for the specified DPI according to a new DPI.
Convert(PointF, GraphicsUnit, GraphicsUnit) static Adjusts the coordinates of a point calculated for the specified unit of measure according to a new unit of measure.
Convert(PointF, Single, Single) static Adjusts the coordinates of a point calculated for the specified DPI according to a new DPI.
Convert(Margins, Single, Single) static Adjusts the document margins calculated for the specified DPI according to a new DPI.
Convert(Rectangle, GraphicsUnit, GraphicsUnit) static Adjusts the location and size of a rectangle calculated for the specified unit of measure according to a new unit of measure.
Convert(Rectangle, Single, Single) static Adjusts the location and size of a rectangle calculated for the specified DPI according to a new DPI.
Convert(RectangleF, GraphicsUnit, GraphicsUnit) static Adjusts the location and size of a rectangle calculated for the specified unit of measure according to a new unit of measure.
Convert(RectangleF, Single, Single) static Adjusts the location and size of a rectangle calculated for the specified DPI according to a new DPI.
Convert(Size, GraphicsUnit, GraphicsUnit) static Adjusts the size calculated for the specified unit of measure according to a new unit of measure.
Convert(Size, Single, Single) static Adjusts the size calculated for the specified DPI according to a new DPI.
Convert(SizeF, GraphicsUnit, GraphicsUnit) static Adjusts the size calculated for the specified unit of measure according to a new unit of measure.
Convert(SizeF, Single, Single) static Adjusts the size calculated for the specified DPI according to a new DPI.
Convert(Int32, Single, Single) static Adjusts the integer value calculated for the specified DPI according to a new DPI.
Convert(Single, GraphicsUnit, GraphicsUnit) static Adjusts the floating-point value calculated for the specified unit of measure according to a new unit of measure.
Convert(Single, Single, Single) static Adjusts the floating-point value calculated for the specified DPI according to a new DPI.
DipToDoc(RectangleF) static Converts the location and size of a rectangle calculated in device-independent pixels (DIP) to a value calculated in document units (measured in 1/300 of an inch).
DipToDoc(SizeF) static Converts the size calculated in device-independent pixels (DIP) to a size calculated in document units (measured in 1/300 of an inch).
DipToDoc(Single) static Converts the floating-point value calculated in device-independent pixels (DIP) to a value calculated in document units (measured in 1/300 of an inch).
DipToTwips(RectangleF) static
DipToTwips(Single) static
DocToDip(RectangleF) static Converts the location and size of a rectangle calculated in document units (measured in 1/300 of an inch) to a value calculated in device-independent pixels (DIP).
DocToDip(SizeF) static
DocToDip(Single) static Converts the floating-point value calculated in document units (measured in 1/300 of an inch) to a value calculated in device-independent pixels (DIP).
DocToPixel(MarginsF) static Converts the document margins calculated in document units (measured in 1/300 of an inch) to a value calculated in pixels.
DocToPixel(PointF) static Converts the coordinates of a point calculated in document units (measured in 1/300 of an inch) to a value calculated in pixels.
DocToPixel(RectangleF) static Converts the location and size of a rectangle calculated in document units (measured in 1/300 of an inch) to a value calculated in pixels.
DocToPixel(SizeF) static Converts the size calculated in document units (measured in 1/300 of an inch) to a size calculated in pixels.
DocToPixel(Single) static Converts the floating-point value calculated in document units (measured in 1/300 of an inch) to a value calculated in pixels.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
PixelToDoc(PointF) static Converts the coordinates of a point calculated in pixels to a value calculated in document units (measured in 1/300 of an inch).
PixelToDoc(RectangleF) static Converts the location and size of a rectangle calculated in pixels to a value calculated in document units (measured in 1/300 of an inch).
PixelToDoc(SizeF) static Converts the size calculated in pixels to a size calculated in document units (measured in 1/300 of an inch).
PixelToDoc(Single) static Converts the floating-point value calculated in pixels to a value calculated in document units (measured in 1/300 of an inch).
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Round(PointF) static Adjusts the floating-point coordinates of a point to the nearest integer values.
Round(RectangleF) static Adjusts the floating-point dimensions of a rectangle to the nearest integer values.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also