public class ImageHelper
extends java.lang.Object
byte[] to TextureRegion.| Constructor and Description |
|---|
ImageHelper() |
| Modifier and Type | Method and Description |
|---|---|
static com.badlogic.gdx.graphics.g2d.TextureRegion |
createTextureFromBytes(byte[] bytes)
Transforms byte[] to Texture Region.
|
public static com.badlogic.gdx.graphics.g2d.TextureRegion createTextureFromBytes(byte[] bytes)
If you are going to call this method inside firebase callback remember to wrap it
into Gdx.app.postRunnable(Runnable).
The texture will be changed so that it has sides with length of power of 2.
bytes - Byte array with image description