Initializes a new instance of the Resolution class from the specified width, height, units and precision.
Syntax
Parameters
- width
- A float value which represents the width of the current image.
- height
- A float value which represents the height of the current image.
- units
- A System.Drawing.GraphicsUnit enumeration value which represents the unit of measure of the current image.
- precision
- The level of precision of the Dimensions returned. This parameter must be a value from MinimumPrecision to MaximumPrecision. Setting the precision is really a request for the precision level to be at a certain level. Because of the way floating-point numbers are stored in computers, ImagXpress can not guarantee that the precision is at a certain level. If the application needs 100% accuracy, then the application should set this value to MaximumPrecision and handle any truncation or rounding itself.
See Also