public interface ImageDecoder extends CommandDecoder
| Modifier and Type | Method and Description |
|---|---|
default int |
decodeColor(int color)
Decodes the color 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. |
decodeCommandPathData decodePath(java.nio.ByteBuffer buffer)
PathData 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);
buffer - the buffer where is encoded the pathLinearGradient decodeGradient(java.nio.ByteBuffer buffer)
buffer - the buffer where is encoded the gradientLinearGradientdecodePath(ByteBuffer)int decodeFillRule(int rule)
rule - the fill rule to decodeLLVGConstants fill ruledefault int decodeColor(int color)
color - color the color to decode