Table of Contents

Class DpiScale

Namespace
SharpVectors.Runtime
Assembly
SharpVectors.Runtime.Wpf.dll

Stores DPI information from which a Visual or UIElement is rendered.

[Serializable]
public class DpiScale : IEquatable<DpiScale>, ICloneable
Inheritance
DpiScale
Implements
Inherited Members

Constructors

DpiScale()

Initializes a new instance of the DpiScale class.

DpiScale(double)

Initializes a new instance of the DpiScale class.

DpiScale(double, double)

Initializes a new instance of the DpiScale class.

Properties

DpiScaleX

Gets the DPI scale on the X axis.When DPI is 96, DpiScaleX is 1.

DpiScaleY

Gets the DPI scale on the Y axis. When DPI is 96, DpiScaleY is 1.

PixelsPerDip

Get or sets the PixelsPerDip at which the text should be rendered.

PixelsPerInchX

Gets the PPI along X axis.

PixelsPerInchY

Gets the PPI along Y axis.

Methods

Clone()
Equals(DpiScale)

Equality test against a DpiScale object.

Equals(object)

Equality test

GetHashCode()

Returns the hash code of the current object

ToString()

Returns a string that represents the current object.

Operators

operator ==(DpiScale, DpiScale)

Checks for equality between two DpiScale instances.

operator !=(DpiScale, DpiScale)

Checks to inequality between two DpiScale instances.