ByteBufferImageBuilder

klasa publiczna ByteBufferImageBuilder

Kompiluje MPImage na podstawie ByteBuffer.

Możesz przekazywać zmienne lub stałe ByteBuffer. Jednak aby zachować integralność danych po przekazaniu pliku ByteBuffer, nie należy modyfikować zawartych w nim treści.

Użyj ByteBufferExtractor, aby zdać ByteBuffer.

Konstruktorzy publiczni

ByteBufferImageBuilder(ByteBuffer byteBuffer, int width, int height, int imageFormat)
Tworzy kreator z obowiązkowym atrybutem ByteBuffer i reprezentowanym obrazem.

Metody publiczne

MPImage
build()
Kompiluje instancję MPImage.

Metody dziedziczone

Konstruktorzy publiczni

public ByteBufferImageBuilder (ByteBuffer byteBuffer, intwidth, intHeight, int imageFormat)

Tworzy kreator z obowiązkowym atrybutem ByteBuffer i reprezentowanym obrazem.

Zweryfikujemy rozmiar obiektu byteBuffer przy podanych wartościach width, height i imageFormat.

Parametry
byteBuffer obiekt danych obrazu.
szerokość szerokość reprezentowanego obrazu.
wysokość wysokość reprezentowanego obrazu.
imageFormat sposób kodowania obrazu przez dane.

Metody publiczne

public MPImage build ()

Kompiluje instancję MPImage.