public class
ByteBufferImageBuilder
Builds a MPImage from a ByteBuffer.
You can pass in either mutable or immutable ByteBuffer. However once ByteBuffer is passed in, to keep data integrity you shouldn't modify content in it.
Use ByteBufferExtractor to get ByteBuffer you passed in.
Public Constructors
|
ByteBufferImageBuilder(ByteBuffer byteBuffer, int width, int height, int imageFormat)
Creates the builder with mandatory
ByteBuffer and the represented image. |
Public Methods
| MPImage |
Inherited Methods
Public Constructors
public ByteBufferImageBuilder (ByteBuffer byteBuffer, int width, int height, int imageFormat)
Creates the builder with mandatory ByteBuffer and the represented image.
We will validate the size of the byteBuffer with given width, height
and imageFormat.
Parameters
| byteBuffer | image data object. |
|---|---|
| width | the width of the represented image. |
| height | the height of the represented image. |
| imageFormat | how the data encode the image. |