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

Representación en Java de un objeto nativo PIX en Leptonica. Más...

Lista de todos los miembros.

Métodos públicos

 Pix (int nativePix)
 Creates a new Pix wrapper for the specified native PIX object. Never call this twice on the same native pointer, because finalize() will attempt to free native memory twice.
 Pix (int width, int height, int depth)
Pix clone ()
 Returns a clone of this Pix. This does NOT create a separate copy, just a new pointer that can be recycled without affecting other clones.
Pix copy ()
 Returns a deep copy of this Pix that can be modified without affecting the original Pix.
byte[] getData ()
 Return the raw bytes of the native PIX object. You can reconstruct the Pix from this data using createFromPix().
int getDepth ()
 Returns the depth of this Pix.
int[] getDimensions ()
 Returns an array of this image's dimensions. See Pix.INDEX_* for indices.
boolean getDimensions (int[] dimensions)
 Fills an array with this image's dimensions. The array must be at least 3 elements long.
int getHeight ()
 Returns the height of this Pix.
int getNativePix ()
 Returns a pointer to the native Pix object. This is used by native code and is only valid within the same process in which the Pix was created.
int getPixel (int x, int y)
 Returns the android.graphics.Color at the specified location.
Rect getRect ()
 Returns a Rect with the width and height of this Pix.
int getWidth ()
 Returns the width of this Pix.
boolean invert ()
 Inverts this Pix in-place.
void recycle ()
 Releases resources and frees any memory associated with this Pix. You may not modify or access the pix after calling this method.
void setPixel (int x, int y, int color)
 Sets the android.graphics.Color at the specified location.

Métodos públicos estáticos

static Pix createFromPix (byte[] pixData, int width, int height, int depth)
 Creates a new Pix from raw Pix data obtained from getData().

Atributos públicos estáticos

static final int INDEX_D = 2
 Index of the image bit-depth within the dimensions array.
static final int INDEX_H = 1
 Index of the image height within the dimensions array.
static final int INDEX_W = 0
 Index of the image width within the dimensions array.

Métodos protegidos

void finalize () throws Throwable

Funciones estáticas del 'package'

 [static initializer]

Atributos del 'package'

final int mNativePix
 Package-accessible pointer to native pix.

Métodos privados estáticos

static native int nativeClone (int nativePix)
static native int nativeCopy (int nativePix)
static native int nativeCreateFromData (byte[] data, int w, int h, int d)
static native int nativeCreatePix (int w, int h, int d)
static native void nativeDestroy (int nativePix)
static native boolean nativeGetData (int nativePix, byte[] data)
static native int nativeGetDataSize (int nativePix)
static native int nativeGetDepth (int nativePix)
static native boolean nativeGetDimensions (int nativePix, int[] dimensions)
static native int nativeGetHeight (int nativePix)
static native int nativeGetPixel (int nativePix, int x, int y)
static native int nativeGetWidth (int nativePix)
static native boolean nativeInvert (int nativePix)
static native void nativeSetPixel (int nativePix, int x, int y, int color)

Atributos privados

boolean mRecycled

Descripción detallada

Representación en Java de un objeto nativo PIX en Leptonica.

Definición en la línea 34 del archivo Pix.java.


Documentación del constructor y destructor

Creates a new Pix wrapper for the specified native PIX object. Never call this twice on the same native pointer, because finalize() will attempt to free native memory twice.

Parámetros:
nativePixA pointer to the native PIX object.

Definición en la línea 61 del archivo Pix.java.

Gráfico de llamadas a esta función:

com.googlecode.leptonica.android.Pix.Pix ( int  width,
int  height,
int  depth 
)

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

Gráfico de llamadas para esta función:


Documentación de las funciones miembro

com.googlecode.leptonica.android.Pix.[static initializer] ( ) [static, package]

Returns a clone of this Pix. This does NOT create a separate copy, just a new pointer that can be recycled without affecting other clones.

Devuelve:
a clone (shallow copy) of the Pix

Definición en la línea 146 del archivo Pix.java.

Gráfico de llamadas para esta función:

Returns a deep copy of this Pix that can be modified without affecting the original Pix.

Devuelve:
a copy of the Pix

Definición en la línea 162 del archivo Pix.java.

Gráfico de llamadas para esta función:

static Pix com.googlecode.leptonica.android.Pix.createFromPix ( byte[]  pixData,
int  width,
int  height,
int  depth 
) [static]

Creates a new Pix from raw Pix data obtained from getData().

Parámetros:
pixDataRaw pix data obtained from getData().
widthThe width of the original Pix.
heightThe height of the original Pix.
depthThe bit-depth of the original Pix.
Devuelve:
a new Pix or null on error

Definición en la línea 213 del archivo Pix.java.

Gráfico de llamadas para esta función:

void com.googlecode.leptonica.android.Pix.finalize ( ) throws Throwable [protected]

Definición en la línea 194 del archivo Pix.java.

Gráfico de llamadas para esta función:

Return the raw bytes of the native PIX object. You can reconstruct the Pix from this data using createFromPix().

Devuelve:
a copy of this PIX object's raw data

Definición en la línea 97 del archivo Pix.java.

Gráfico de llamadas para esta función:

Returns the depth of this Pix.

Devuelve:
the depth of this Pix

Definición en la línea 259 del archivo Pix.java.

Gráfico de llamadas para esta función:

Gráfico de llamadas a esta función:

Returns an array of this image's dimensions. See Pix.INDEX_* for indices.

Devuelve:
an array of this image's dimensions or null on failure

Definición en la línea 116 del archivo Pix.java.

Gráfico de llamadas a esta función:

Fills an array with this image's dimensions. The array must be at least 3 elements long.

Parámetros:
dimensionsAn integer array with at least three elements.
Devuelve:
true on success

Definición en la línea 134 del archivo Pix.java.

Gráfico de llamadas para esta función:

Returns the height of this Pix.

Devuelve:
the height of this Pix

Definición en la línea 250 del archivo Pix.java.

Gráfico de llamadas para esta función:

Gráfico de llamadas a esta función:

Returns a pointer to the native Pix object. This is used by native code and is only valid within the same process in which the Pix was created.

Devuelve:
a native pointer to the Pix object

Definición en la línea 87 del archivo Pix.java.

Gráfico de llamadas a esta función:

Returns the android.graphics.Color at the specified location.

Parámetros:
xThe x coordinate (0...width-1) of the pixel to return.
yThe y coordinate (0...height-1) of the pixel to return.
Devuelve:
The argb android.graphics.Color at the specified coordinate.
Excepciones:
IllegalArgumentExceptionIf x, y exceeds the image bounds.

Definición en la línea 276 del archivo Pix.java.

Gráfico de llamadas para esta función:

Returns a Rect with the width and height of this Pix.

Devuelve:
a Rect with the width and height of this Pix

Definición en la línea 229 del archivo Pix.java.

Gráfico de llamadas para esta función:

Returns the width of this Pix.

Devuelve:
the width of this Pix

Definición en la línea 241 del archivo Pix.java.

Gráfico de llamadas para esta función:

Gráfico de llamadas a esta función:

Inverts this Pix in-place.

Devuelve:
true on success

Definición en la línea 177 del archivo Pix.java.

Gráfico de llamadas para esta función:

static native int com.googlecode.leptonica.android.Pix.nativeClone ( int  nativePix) [static, private]

Gráfico de llamadas a esta función:

static native int com.googlecode.leptonica.android.Pix.nativeCopy ( int  nativePix) [static, private]

Gráfico de llamadas a esta función:

static native int com.googlecode.leptonica.android.Pix.nativeCreateFromData ( byte[]  data,
int  w,
int  h,
int  d 
) [static, private]

Gráfico de llamadas a esta función:

static native int com.googlecode.leptonica.android.Pix.nativeCreatePix ( int  w,
int  h,
int  d 
) [static, private]

Gráfico de llamadas a esta función:

static native void com.googlecode.leptonica.android.Pix.nativeDestroy ( int  nativePix) [static, private]

Gráfico de llamadas a esta función:

static native boolean com.googlecode.leptonica.android.Pix.nativeGetData ( int  nativePix,
byte[]  data 
) [static, private]

Gráfico de llamadas a esta función:

static native int com.googlecode.leptonica.android.Pix.nativeGetDataSize ( int  nativePix) [static, private]

Gráfico de llamadas a esta función:

static native int com.googlecode.leptonica.android.Pix.nativeGetDepth ( int  nativePix) [static, private]

Gráfico de llamadas a esta función:

static native boolean com.googlecode.leptonica.android.Pix.nativeGetDimensions ( int  nativePix,
int[]  dimensions 
) [static, private]

Gráfico de llamadas a esta función:

static native int com.googlecode.leptonica.android.Pix.nativeGetHeight ( int  nativePix) [static, private]

Gráfico de llamadas a esta función:

static native int com.googlecode.leptonica.android.Pix.nativeGetPixel ( int  nativePix,
int  x,
int  y 
) [static, private]

Gráfico de llamadas a esta función:

static native int com.googlecode.leptonica.android.Pix.nativeGetWidth ( int  nativePix) [static, private]

Gráfico de llamadas a esta función:

static native boolean com.googlecode.leptonica.android.Pix.nativeInvert ( int  nativePix) [static, private]

Gráfico de llamadas a esta función:

static native void com.googlecode.leptonica.android.Pix.nativeSetPixel ( int  nativePix,
int  x,
int  y,
int  color 
) [static, private]

Gráfico de llamadas a esta función:

Releases resources and frees any memory associated with this Pix. You may not modify or access the pix after calling this method.

Definición en la línea 185 del archivo Pix.java.

Gráfico de llamadas para esta función:

Gráfico de llamadas a esta función:

void com.googlecode.leptonica.android.Pix.setPixel ( int  x,
int  y,
int  color 
)

Sets the android.graphics.Color at the specified location.

Parámetros:
xThe x coordinate (0...width-1) of the pixel to set.
yThe y coordinate (0...height-1) of the pixel to set.
colorThe argb android.graphics.Color to set at the specified coordinate.
Excepciones:
IllegalArgumentExceptionIf x, y exceeds the image bounds.

Definición en la línea 301 del archivo Pix.java.

Gráfico de llamadas para esta función:


Documentación de los datos miembro

Index of the image bit-depth within the dimensions array.

Definición en la línea 46 del archivo Pix.java.

Index of the image height within the dimensions array.

Definición en la línea 43 del archivo Pix.java.

Index of the image width within the dimensions array.

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

Package-accessible pointer to native pix.

Definición en la línea 49 del archivo Pix.java.

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


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