@Properties(inherit=lept.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| 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, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeroprotected 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 Indexablepublic void destroy()
Copyright © 2019. All rights reserved.