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.WriteFile

Métodos para el tratamiento de imagen de salida. Más...

Lista de todos los miembros.

Métodos públicos estáticos

static Bitmap writeBitmap (Pix pixs)
 Writes a Pix to an Android Bitmap object. The output Bitmap will always be in ARGB_8888 format, but the input Pixs may be any bit-depth.
static byte[] writeBytes8 (Pix pixs)
 Write an 8bpp Pix to a flat byte array.
static int writeBytes8 (Pix pixs, byte[] data)
 Write an 8bpp Pix to a flat byte array.
static boolean writeFiles (Pixa pixas, File path, String prefix, int format)
 Writes all the images in a Pixa array to individual files using the specified format. The output file extension will be determined by the format.
static boolean writeImpliedFormat (Pix pixs, File file)
 Writes a Pix to file using the file extension as the output format; supported formats are .jpg or .jpeg for JPEG and .bmp for bitmap.
static boolean writeImpliedFormat (Pix pixs, File file, int quality, boolean progressive)
 Writes a Pix to file using the file extension as the output format; supported formats are .jpg or .jpeg for JPEG and .bmp for bitmap.
static byte[] writeMem (Pix pixs, int format)
 Write a Pix to a byte array using the specified encoding from Constants.IFF_*.

Atributos públicos estáticos

static final boolean DEFAULT_PROGRESSIVE = true
 Default JPEG progressive encoding.
static final int DEFAULT_QUALITY = 85
 Default JPEG quality.

Funciones estáticas del 'package'

 [static initializer]

Métodos privados estáticos

static native boolean nativeWriteBitmap (int nativePix, Bitmap bitmap)
static native int nativeWriteBytes8 (int nativePix, byte[] data)
static native boolean nativeWriteFiles (int nativePix, String rootname, int format)
static native boolean nativeWriteImpliedFormat (int nativePix, String fileName, int quality, boolean progressive)
static native byte[] nativeWriteMem (int nativePix, int format)

Descripción detallada

Métodos para el tratamiento de imagen de salida.

Definición en la línea 36 del archivo WriteFile.java.


Documentación de las funciones miembro

com.googlecode.leptonica.android.WriteFile.[static initializer] ( ) [static, package]
static native boolean com.googlecode.leptonica.android.WriteFile.nativeWriteBitmap ( int  nativePix,
Bitmap  bitmap 
) [static, private]

Gráfico de llamadas a esta función:

static native int com.googlecode.leptonica.android.WriteFile.nativeWriteBytes8 ( int  nativePix,
byte[]  data 
) [static, private]

Gráfico de llamadas a esta función:

static native boolean com.googlecode.leptonica.android.WriteFile.nativeWriteFiles ( int  nativePix,
String  rootname,
int  format 
) [static, private]
static native boolean com.googlecode.leptonica.android.WriteFile.nativeWriteImpliedFormat ( int  nativePix,
String  fileName,
int  quality,
boolean  progressive 
) [static, private]

Gráfico de llamadas a esta función:

static native byte [] com.googlecode.leptonica.android.WriteFile.nativeWriteMem ( int  nativePix,
int  format 
) [static, private]

Gráfico de llamadas a esta función:

Writes a Pix to an Android Bitmap object. The output Bitmap will always be in ARGB_8888 format, but the input Pixs may be any bit-depth.

Parámetros:
pixsThe source image.
Devuelve:
a Bitmap containing a copy of the source image, or null on failure

Definición en la línea 208 del archivo WriteFile.java.

Gráfico de llamadas para esta función:

Gráfico de llamadas a esta función:

Write an 8bpp Pix to a flat byte array.

Parámetros:
pixsThe 8bpp source image.
Devuelve:
a byte array where each byte represents a single 8-bit pixel

Definición en la línea 54 del archivo WriteFile.java.

Gráfico de llamadas para esta función:

static int com.googlecode.leptonica.android.WriteFile.writeBytes8 ( Pix  pixs,
byte[]  data 
) [static]

Write an 8bpp Pix to a flat byte array.

Parámetros:
pixsThe 8bpp source image.
dataA byte array large enough to hold the pixels of pixs.
Devuelve:
the number of bytes written to data

Definición en la línea 82 del archivo WriteFile.java.

Gráfico de llamadas para esta función:

static boolean com.googlecode.leptonica.android.WriteFile.writeFiles ( Pixa  pixas,
File  path,
String  prefix,
int  format 
) [static]

Writes all the images in a Pixa array to individual files using the specified format. The output file extension will be determined by the format.

Output file names will take the format <path>/<prefix><index>.<extension>

Parámetros:
pixasThe source Pixa image array.
pathThe output directory.
prefixThe prefix to give output files.
formatThe format to use for output files.
Devuelve:
true on success

Definición en la línea 115 del archivo WriteFile.java.

static boolean com.googlecode.leptonica.android.WriteFile.writeImpliedFormat ( Pix  pixs,
File  file 
) [static]

Writes a Pix to file using the file extension as the output format; supported formats are .jpg or .jpeg for JPEG and .bmp for bitmap.

Uses default quality and progressive encoding settings.

Parámetros:
pixsSource image.
fileThe file to write.
Devuelve:
true on success

Definición en la línea 158 del archivo WriteFile.java.

static boolean com.googlecode.leptonica.android.WriteFile.writeImpliedFormat ( Pix  pixs,
File  file,
int  quality,
boolean  progressive 
) [static]

Writes a Pix to file using the file extension as the output format; supported formats are .jpg or .jpeg for JPEG and .bmp for bitmap.

Notes:

  1. This determines the output format from the filename extension.
  2. The last two args are ignored except for requests for jpeg files.
  3. The jpeg default quality is 75.
Parámetros:
pixsSource image.
fileThe file to write.
quality(Only for lossy formats) Quality between 1 - 100, 0 for default.
progressive(Only for JPEG) Whether to encode as progressive.
Devuelve:
true on success

Definición en la línea 187 del archivo WriteFile.java.

Gráfico de llamadas para esta función:

static byte [] com.googlecode.leptonica.android.WriteFile.writeMem ( Pix  pixs,
int  format 
) [static]

Write a Pix to a byte array using the specified encoding from Constants.IFF_*.

Parámetros:
pixsThe source image.
formatA format from Constants.IFF_*.
Devuelve:
a byte array containing encoded bytes

Definición en la línea 138 del archivo WriteFile.java.

Gráfico de llamadas para esta función:


Documentación de los datos miembro

Default JPEG progressive encoding.

Definición en la línea 45 del archivo WriteFile.java.

Default JPEG quality.

Definición en la línea 42 del archivo WriteFile.java.


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