Class Resolution

Class Resolution

Namespace: Aspose.Html.Drawing
Assembly: Aspose.HTML.dll (25.2.0)

Represents a resolution unit.

[ComVisible(true)]
public sealed class Resolution : Dimension, IEquatable<unit>

Inheritance

objectUnitNumericDimensionResolution

Implements

IEquatable<unit>

Inherited Members

Dimension.ToString(), Numeric.GetValue(), Numeric.CompareTo(Numeric), Numeric.Equals(Unit), Numeric.GetHashCode(), Numeric.ToString(), Numeric.GetValue(UnitType), Unit.Equals(Unit), Unit.Equals(object), Unit.GetHashCode(), Unit.ToString(), Unit.FromCentimeters(double), Unit.FromMillimeters(double), Unit.FromQuarterMillimeters(double), Unit.FromInches(double), Unit.FromPicas(double), Unit.FromPoints(double), Unit.FromPixels(double), Unit.FromDegrees(double), Unit.FromGradians(double), Unit.FromRadians(double), Unit.FromTurns(double), Unit.FromSeconds(double), Unit.FromMilliseconds(double), Unit.FromHertz(double), Unit.FromKiloHertz(double), Unit.FromDotsPerInch(double), Unit.FromDotsPerCentimeters(double), Unit.FromDotsPerPixel(double), Unit.UnitType, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Methods

OnConvert(double, UnitType, UnitType)

Called when unit is converted to the specified unit type.

protected override double OnConvert(double value, UnitType fromType, UnitType toType)

Parameters

value double

The value.

fromType UnitType

From unit type.

toType UnitType

To unit type.

Returns

double

Returns value that is converted to specified type.

Operators

operator +(Resolution, Resolution)

Implements the operator +.

public static Resolution operator +(Resolution a, Resolution b)

Parameters

a Resolution

Parameter a.

b Resolution

Parameter b.

Returns

Resolution

The result of the operator.

Exceptions

ArgumentNullException

Arguments are null

ArgumentException

Arguments have different types or Arguments have different resolution or

operator ==(Resolution, Resolution)

Implements the operator ==.

public static bool operator ==(Resolution a, Resolution b)

Parameters

a Resolution

The parameter a.

b Resolution

The parameter b.

Returns

bool

The result of the operator.

operator &gt;(Resolution, Resolution)

Implements the operator >.

public static bool operator &gt;(Resolution a, Resolution b)

Parameters

a Resolution

The parameter a.

b Resolution

The parameter b.

Returns

bool

The result of the operator.

Exceptions

ArgumentException

Arguments have different types

ArgumentNullException

An argument is null

operator &gt;=(Resolution, Resolution)

Implements the operator >=.

public static bool operator &gt;=(Resolution a, Resolution b)

Parameters

a Resolution

The parameter a.

b Resolution

The parameter b.

Returns

bool

The result of the operator.

Exceptions

ArgumentException

Arguments have different types

ArgumentNullException

An argument is null

implicit operator Resolution(double)

Performs an implicit conversion from System.Double to Aspose.Html.Drawing.Resolution.

public static implicit operator Resolution(double value)

Parameters

value double

The value treated as dpi.

Returns

Resolution

The result of the conversion.

implicit operator Resolution(float)

Performs an implicit conversion from System.Single to Aspose.Html.Drawing.Resolution.

public static implicit operator Resolution(float value)

Parameters

value float

The value treated as dpi.

Returns

Resolution

The result of the conversion.

operator !=(Resolution, Resolution)

Implements the operator !=.

public static bool operator !=(Resolution a, Resolution b)

Parameters

a Resolution

The parameter a.

b Resolution

The parameter b.

Returns

bool

The result of the operator.

operator <(Resolution, Resolution)

Implements the operator <.

public static bool operator &lt;(Resolution a, Resolution b)

Parameters

a Resolution

The parameter a.

b Resolution

The parameter b.

Returns

bool

The result of the operator.

Exceptions

ArgumentException

Arguments have different types

ArgumentNullException

An argument is null

operator <=(Resolution, Resolution)

Implements the operator <=.

public static bool operator &lt;=(Resolution a, Resolution b)

Parameters

a Resolution

The parameter a.

b Resolution

The parameter b.

Returns

bool

The result of the operator.

Exceptions

ArgumentException

Arguments have different types

ArgumentNullException

An argument is null

operator -(Resolution, Resolution)

Implements the operator -.

public static Resolution operator -(Resolution a, Resolution b)

Parameters

a Resolution

The parameter a.

b Resolution

The parameter b.

Returns

Resolution

The result of the operator.

Exceptions

ArgumentNullException

Arguments are null

ArgumentException

Arguments have different types or Arguments have different resolutions or </unit>