FingerImage.downscaleTo Method¶
Module: FingerImage
Definition¶
Downscales the image so that its maximum dimension equals the given maximum size, while preserving the aspect ratio.
Note
If the maximum dimension is already smaller than the given maximum size, the function does nothing and the returned scale ratio is 1.
double downscaleTo(FingerImage dstFingerImage, int maxSize)
Parameters
dstFingerImage FingerImagein Destination image.
maxSize intin Maximum image size, in pixels. The value must be greater than 0.
Returns
doubleThe scaling ratio applied to the image. Range is ]0:1].
Exceptions
An error has occurred during Finger Library execution.