public class Scale
Image scaling methods.
public static Pix scaleToSize(Pix pixs, int width, int height, com.googlecode.leptonica.android.Scale.ScaleType type)
Scales the Pix to a specified width and height using a specified scaling type (fill, stretch, etc.). Returns a scaled image or a clone of the Pix if no scaling is required.
pixs - Source pix imagewidth - The desired width to scale toheight - The desired height to scale totype - The desired scaling typepublic static Pix scale(Pix pixs, float scale)
Scales the Pix to specified scale. If no scaling is required, returns a clone of the source Pix.
pixs - the source Pixscale - dimension scaling factorpublic static Pix scaleWithoutSharpening(Pix pixs, float scale)
Scales the Pix to the specified scale without sharpening.
pixs - the source Pix (1, 2, 4, 8, 16 and 32 bpp)scale - scaling factor for both X and Ypublic static Pix scale(Pix pixs, float scaleX, float scaleY)
Scales the Pix to specified x and y scale. If no scaling is required, returns a clone of the source Pix.
pixs - the source PixscaleX - x-dimension (width) scaling factorscaleY - y-dimension (height) scaling factor