Métodos para el escalado de las imágenes. Más...
Clases | |
enum | ScaleType |
Métodos públicos estáticos | |
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. | |
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. | |
static Pix | scaleToSize (Pix pixs, int width, int height, 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. | |
Funciones estáticas del 'package' | |
[static initializer] | |
Métodos privados estáticos | |
static native int | nativeScale (int nativePix, float scaleX, float scaleY) |
Métodos para el escalado de las imágenes.
Definición en la línea 32 del archivo Scale.java.
com.googlecode.leptonica.android.Scale.[static initializer] | ( | ) | [static, package] |
static native int com.googlecode.leptonica.android.Scale.nativeScale | ( | int | nativePix, |
float | scaleX, | ||
float | scaleY | ||
) | [static, private] |
static Pix com.googlecode.leptonica.android.Scale.scale | ( | Pix | pixs, |
float | scale | ||
) | [static] |
Scales the Pix to specified scale. If no scaling is required, returns a clone of the source Pix.
pixs | the source Pix |
scale | dimension scaling factor |
Definición en la línea 108 del archivo Scale.java.
static Pix com.googlecode.leptonica.android.Scale.scale | ( | Pix | pixs, |
float | scaleX, | ||
float | scaleY | ||
) | [static] |
Scales the Pix to specified x and y scale. If no scaling is required, returns a clone of the source Pix.
pixs | the source Pix |
scaleX | x-dimension (width) scaling factor |
scaleY | y-dimension (height) scaling factor |
Definición en la línea 124 del archivo Scale.java.
static Pix com.googlecode.leptonica.android.Scale.scaleToSize | ( | Pix | pixs, |
int | width, | ||
int | height, | ||
ScaleType | type | ||
) | [static] |
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 | |
width | |
height | |
type |
Definición en la línea 70 del archivo Scale.java.