@Properties(inherit=leptonica.class) public abstract class AbstractPIX extends Pointer implements Indexable
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractPIX.DestroyDeallocator |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
protected IntPointer |
pointer |
Constructor and Description |
---|
AbstractPIX(Pointer p) |
Modifier and Type | Method and Description |
---|---|
PIX |
clone()
Calls pixClone(), and registers a deallocator.
|
static PIX |
create(int width,
int height,
int depth)
Calls pixCreate(), and registers a deallocator.
|
static PIX |
create(int width,
int height,
int depth,
Pointer data)
Calls createHeader(), and initializes data, keeping a reference to prevent deallocation.
|
ByteBuffer |
createBuffer() |
ByteBuffer |
createBuffer(int index) |
static PIX |
createHeader(int width,
int height,
int depth)
Calls pixCreateHeader(), and registers a deallocator.
|
UByteIndexer |
createIndexer() |
UByteIndexer |
createIndexer(boolean direct) |
static PIX |
createNoInit(int width,
int height,
int depth)
Calls pixCreateNoInit(), and registers a deallocator.
|
static PIX |
createTemplate(PIX pixs)
Calls pixCreateTemplate(), and registers a deallocator.
|
static PIX |
createTemplateNoInit(PIX pixs)
Calls pixCreateTemplateNoInit(), and registers a deallocator.
|
void |
destroy()
Calls the deallocator, if registered, otherwise has no effect.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
protected IntPointer pointer
public AbstractPIX(Pointer p)
public static PIX create(int width, int height, int depth)
public static PIX createNoInit(int width, int height, int depth)
public static PIX createTemplate(PIX pixs)
public static PIX createTemplateNoInit(PIX pixs)
public static PIX createHeader(int width, int height, int depth)
public static PIX create(int width, int height, int depth, Pointer data)
public PIX clone()
public ByteBuffer createBuffer()
createBuffer(0)
public ByteBuffer createBuffer(int index)
PIX.data()
wrapped in a ByteBuffer
starting at given byte index.public UByteIndexer createIndexer()
createIndexer(true)
public UByteIndexer createIndexer(boolean direct)
createIndexer
in interface Indexable
public void destroy()
Copyright © 2024. All rights reserved.