Initializes a new instance of the Resolution class from the specified width, height, units and precision.
Syntax
'Declaration
Public Function New( _
ByVal As Single, _
ByVal As Single, _
ByVal As GraphicsUnit, _
ByVal As Integer _
)
'Usage
Dim width As Single
Dim height As Single
Dim units As GraphicsUnit
Dim precision As Integer
Dim instance As New Resolution(width, height, units, precision)
public Resolution(
float ,
float ,
GraphicsUnit ,
int
)
public: Resolution(
float ,
float ,
GraphicsUnit ,
int
)
public:
Resolution(
float ,
float ,
GraphicsUnit ,
int
)
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