Approximation of Two-Dimensional Scale Factors, or Resolutions, Preserving Aspect Ratio
Original Publication Date: 1987-Mar-01
Included in the Prior Art Database: 2005-Feb-01
This article describes a technique for the approximation of two-dimensional scale factors, or resolutions, preserving aspect ratio. The basic concept is: having made an approximation in the x- direction, then the target y-scale factor is compensated by the same ratio - so preserving overall aspect ratio. That is having been forced to compromise an x-scale factor, there is no further penalty in compromising the y-scale factor by (up to) the same amount. The algorithm can be simplified into just a few statements. Problem solved by this invention When scaling an Image (or Graphics) picture in both the x and y dimensions, and the scale factors have to be chosen from a set of fixed values, the problem is how to choose values which most nearly give the desired aspect ratio.