GraphicsDpi Members

Enables you to calculate the DPI values associated with specific units of measure (and vice versa).

Constructors

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

Fields

Name Description
DeviceIndependentPixel 96f
Display 75f
Document 300f
EMU 914400f
HundredthsOfAnInch 100f
Inch 1f
Millimeter 25.4f
Pixel static 96f
Point 72f
TenthsOfAMillimeter 254f
Twips 1440f

Methods

Name Description
DpiToUnit(Single) static Converts the specified DPI value to a corresponding unit of measure.
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.
GetGraphicsDpi(Graphics) static Gets the DPI value corresponding to the unit of measure of the specified Graphics object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetSafeResolution(Single) static
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
UnitToDpi(GraphicsUnit) static Converts the specified unit of measure to a corresponding DPI value.
UnitToDpiI(GraphicsUnit) static Converts the specified unit of measure to a corresponding DPI value.
UnitToString(GraphicsUnit) static Returns a string value, identifying the specified unit of measure.
See Also