ByteBufferGlEffect.Image


public class ByteBufferGlEffect.Image


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

Summary

Public fields

final int
final ByteBuffer
final int

Public methods

Bitmap

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

Public fields

height

public final int height

pixelBuffer

public final ByteBuffer pixelBuffer

width

public final int width

Public methods

copyToBitmap

public Bitmap copyToBitmap()

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.