Tesseract-android-tools  1.0
 Todo Clases Namespaces Archivos Funciones Variables
Métodos públicos estáticos | Atributos públicos estáticos | Funciones estáticas del 'package' | Métodos privados estáticos
Referencia de la Clase com.googlecode.leptonica.android.Rotate

Métodos para la rotación de las imágenes. Más...

Lista de todos los miembros.

Métodos públicos estáticos

static Pix rotate (Pix pixs, float degrees)
 Performs rotation using the default parameters.
static Pix rotate (Pix pixs, float degrees, boolean quality)
 Performs rotation with resizing using the default parameters.
static Pix rotate (Pix pixs, float degrees, boolean quality, boolean resize)
 Performs basic image rotation about the center.

Atributos públicos estáticos

static final boolean ROTATE_QUALITY = true
 Default rotation quality is high.

Funciones estáticas del 'package'

 [static initializer]

Métodos privados estáticos

static native int nativeRotate (int nativePix, float degrees, boolean quality, boolean resize)

Descripción detallada

Métodos para la rotación de las imágenes.

Definición en la línea 32 del archivo Rotate.java.


Documentación de las funciones miembro

com.googlecode.leptonica.android.Rotate.[static initializer] ( ) [static, package]
static native int com.googlecode.leptonica.android.Rotate.nativeRotate ( int  nativePix,
float  degrees,
boolean  quality,
boolean  resize 
) [static, private]

Gráfico de llamadas a esta función:

static Pix com.googlecode.leptonica.android.Rotate.rotate ( Pix  pixs,
float  degrees 
) [static]

Performs rotation using the default parameters.

Parámetros:
pixsThe source pix.
degreesThe number of degrees to rotate; clockwise is positive.
Devuelve:
the rotated source image

Definición en la línea 51 del archivo Rotate.java.

Gráfico de llamadas a esta función:

static Pix com.googlecode.leptonica.android.Rotate.rotate ( Pix  pixs,
float  degrees,
boolean  quality 
) [static]

Performs rotation with resizing using the default parameters.

Parámetros:
pixsThe source pix.
degreesThe number of degrees to rotate; clockwise is positive.
qualityWhether to use high-quality rotation.
Devuelve:
the rotated source image

Definición en la línea 66 del archivo Rotate.java.

Gráfico de llamadas para esta función:

static Pix com.googlecode.leptonica.android.Rotate.rotate ( Pix  pixs,
float  degrees,
boolean  quality,
boolean  resize 
) [static]

Performs basic image rotation about the center.

Notes:

  1. Rotation is about the center of the image.
  2. For very small rotations, just return a clone.
  3. Rotation brings either white or black pixels in from outside the image.
  4. Above 20 degrees, if rotation by shear is requested, we rotate by sampling.
  5. Colormaps are removed for rotation by area map and shear.
  6. The dest can be expanded so that no image pixels are lost. To invoke expansion, input the original width and height. For repeated rotation, use of the original width and height allows the expansion to stop at the maximum required size, which is a square with side = sqrt(w*w + h*h).
Parámetros:
pixsThe source pix.
degreesThe number of degrees to rotate; clockwise is positive.
qualityWhether to use high-quality rotation.
resizeWhether to expand the output so that no pixels are lost. Note: 1bpp images are always resized when quality is
 true 
.
Devuelve:
the rotated source image

Definición en la línea 101 del archivo Rotate.java.

Gráfico de llamadas para esta función:


Documentación de los datos miembro

Default rotation quality is high.

Definición en la línea 40 del archivo Rotate.java.


La documentación para esta clase fue generada a partir del siguiente fichero:
 Todo Clases Namespaces Archivos Funciones Variables