Numeric.NumericInit, Numeric.ValueHelperUnit.UnitInit| Constructor and Description |
|---|
Resolution(double value,
UnitType type)
Initializes a new instance of the
Resolution class. |
| Modifier and Type | Method and Description |
|---|---|
protected double |
onConvert(double value,
UnitType fromType,
UnitType toType)
Called when unit is converted to the specified unit type.
|
static Resolution |
op_Addition(Resolution a,
Resolution b)
Implements the operator +.
|
static boolean |
op_Equality(Resolution a,
Resolution b)
Implements the operator ==.
|
static boolean |
op_GreaterThan(Resolution a,
Resolution b)
Implements the operator >.
|
static boolean |
op_GreaterThanOrEqual(Resolution a,
Resolution b)
Implements the operator >=.
|
static boolean |
op_Inequality(Resolution a,
Resolution b)
Implements the operator !
|
static boolean |
op_LessThan(Resolution a,
Resolution b)
Implements the operator <.
|
static boolean |
op_LessThanOrEqual(Resolution a,
Resolution b)
Implements the operator <=.
|
static Resolution |
op_Subtraction(Resolution a,
Resolution b)
Implements the operator -.
|
static Resolution |
to_Resolution(double value)
Performs an implicit conversion from
double to Resolution. |
static Resolution |
to_Resolution(float value)
Performs an implicit conversion from
float to Resolution. |
compareTo, equals, getValue, getValue, hashCode, initializeequals, fromCentimeters, fromDegrees, fromDotsPerCentimeters, fromDotsPerInch, fromDotsPerPixel, fromGradians, fromHertz, fromInches, fromKiloHertz, fromMillimeters, fromMilliseconds, fromPicas, fromPixels, fromPoints, fromQuarterMillimeters, fromRadians, fromSeconds, fromTurns, getUnitTypepublic Resolution(double value,
UnitType type)
Initializes a new instance of the Resolution class.
value - The value.type - The type.public static Resolution to_Resolution(double value)
Performs an implicit conversion from double to Resolution.
value - The value treated as dpi.public static Resolution to_Resolution(float value)
Performs an implicit conversion from float to Resolution.
value - The value treated as dpi.public static Resolution op_Addition(Resolution a, Resolution b)
Implements the operator +.
a - Parameter a.b - Parameter b.com.aspose.ms.System.ArgumentNullException - Arguments are nullcom.aspose.ms.System.ArgumentException - Arguments have different types
or
Arguments have different resolution
orpublic static Resolution op_Subtraction(Resolution a, Resolution b)
Implements the operator -.
a - The parameter a.b - The parameter b.com.aspose.ms.System.ArgumentNullException - Arguments are nullcom.aspose.ms.System.ArgumentException - Arguments have different types
or
Arguments have different resolutions
orpublic static boolean op_LessThan(Resolution a, Resolution b)
Implements the operator <.
a - The parameter a.b - The parameter b.com.aspose.ms.System.ArgumentException - Arguments have different typescom.aspose.ms.System.ArgumentNullException - An argument is nullpublic static boolean op_GreaterThan(Resolution a, Resolution b)
Implements the operator >.
a - The parameter a.b - The parameter b.com.aspose.ms.System.ArgumentException - Arguments have different typescom.aspose.ms.System.ArgumentNullException - An argument is nullpublic static boolean op_LessThanOrEqual(Resolution a, Resolution b)
Implements the operator <=.
a - The parameter a.b - The parameter b.com.aspose.ms.System.ArgumentException - Arguments have different typescom.aspose.ms.System.ArgumentNullException - An argument is nullpublic static boolean op_GreaterThanOrEqual(Resolution a, Resolution b)
Implements the operator >=.
a - The parameter a.b - The parameter b.com.aspose.ms.System.ArgumentException - Arguments have different typescom.aspose.ms.System.ArgumentNullException - An argument is nullpublic static boolean op_Equality(Resolution a, Resolution b)
Implements the operator ==.
a - The parameter a.b - The parameter b.public static boolean op_Inequality(Resolution a, Resolution b)
Implements the operator !=.
a - The parameter a.b - The parameter b.