public class NemaImageDecoder extends java.lang.Object implements ImageDecoder
| Constructor and Description |
|---|
NemaImageDecoder() |
| Modifier and Type | Method and Description |
|---|---|
int |
decodeColor(int color)
Encoded color is A-B-G-R
|
int |
decodeCommand(int encodedCommand)
Decodes the command encoded for a GPU.
|
int |
decodeFillRule(int rule)
Decodes the fill rule encoded for a GPU.
|
LinearGradient |
decodeGradient(java.nio.ByteBuffer is)
Decodes the linear gradient encoded in the RAW image's buffer.
|
PathData |
decodePath(java.nio.ByteBuffer is)
Wraps a
PathData able to decode the path encoded in the RAW image's buffer. |
public PathData decodePath(java.nio.ByteBuffer is)
ImageDecoderPathData able to decode the path encoded in the RAW image's buffer. The first path element (the
path's header) starts at current byte buffer's position.
To decode the path's data, the implementation should wrap another ByteBuffer:
ByteBuffer buffer = ByteBuffer.wrap(is.array(), is.position(), length).order(ByteOrder.LITTLE_ENDIAN);
decodePath in interface ImageDecoderis - the buffer where is encoded the pathpublic LinearGradient decodeGradient(java.nio.ByteBuffer is)
ImageDecoderdecodeGradient in interface ImageDecoderis - the buffer where is encoded the gradientLinearGradientImageDecoder.decodePath(ByteBuffer)public int decodeCommand(int encodedCommand)
CommandDecoderdecodeCommand in interface CommandDecoderencodedCommand - the command to decode.public int decodeFillRule(int rule)
ImageDecoderdecodeFillRule in interface ImageDecoderrule - the fill rule to decodeLLVGConstants fill rulepublic int decodeColor(int color)
decodeColor in interface ImageDecodercolor - color the color to decode