ByteBufferGlEffect.Image


class ByteBufferGlEffect.Image


A class that represents image data is backed by a ByteBuffer.

Summary

Public functions

Bitmap!

Returns a Bitmap that contains a copy of the pixel buffer.

Public properties

Int
ByteBuffer!
Int

Public functions

copyToBitmap

fun copyToBitmap(): Bitmap!

Returns a Bitmap that contains a copy of the pixel buffer.

The returned Bitmap has config ARGB_8888.

This method copies the pixel data and is less efficient than accessing the pixel buffer directly.

Public properties

height

val heightInt

pixelBuffer

val pixelBufferByteBuffer!

width

val widthInt