public class StubImageDecoder extends java.lang.Object implements ImageDecoder
| Constructor and Description |
|---|
StubImageDecoder() |
| Modifier and Type | Method and Description |
|---|---|
int |
decodeCommand(int command)
Decodes the command encoded for a GPU.
|
int |
decodeFillRule(int rule)
Decodes the fill rule encoded for a GPU.
|
LinearGradient |
decodeGradient(java.nio.ByteBuffer buffer)
Decodes the linear gradient encoded in the RAW image's buffer.
|
PathData |
decodePath(java.nio.ByteBuffer buffer)
Wraps a
PathData able to decode the path encoded in the RAW image's buffer. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecodeColorpublic PathData decodePath(java.nio.ByteBuffer buffer)
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 ImageDecoderbuffer - the buffer where is encoded the pathpublic LinearGradient decodeGradient(java.nio.ByteBuffer buffer)
ImageDecoderdecodeGradient in interface ImageDecoderbuffer - the buffer where is encoded the gradientLinearGradientImageDecoder.decodePath(ByteBuffer)public int decodeCommand(int command)
CommandDecoderdecodeCommand in interface CommandDecodercommand - the command to decode.public int decodeFillRule(int rule)
ImageDecoderdecodeFillRule in interface ImageDecoderrule - the fill rule to decodeLLVGConstants fill rule