Gets and sets the precision used when resolution is returned.
Read-write property
Visual Basic |
---|
Public Property ResolutionPrecision As Long |
The precision used when resolution is returned.
This property affects the values returned from IResX, IResY properties and QueryFile method. ResolutionPrecision 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 15 and handle any truncation or rounding itself.
VB Example for using ResolutionPrecision (Visual Basic) | Copy Code |
---|---|
Dim resX As Double, resY As Double ImagXpress1.ResolutionPrecision = 0 resX = ImagXpress1.IResX resY = ImagXpress1.IResY ' resX and resY will have 0 as the fractional part |