public class PixmapUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
PixmapUtils.PixmapTraverser |
| Constructor and Description |
|---|
PixmapUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.badlogic.gdx.graphics.Pixmap |
blankPixmap() |
static com.badlogic.gdx.graphics.Texture |
blankTexture() |
static com.badlogic.gdx.graphics.g2d.TextureRegion |
blankTextureRegion() |
static com.badlogic.gdx.graphics.Pixmap |
copy(com.badlogic.gdx.graphics.Pixmap input) |
static com.badlogic.gdx.graphics.Pixmap |
crop(com.badlogic.gdx.graphics.Pixmap input,
int x,
int y,
int width,
int height) |
static void |
drawPixel(com.badlogic.gdx.graphics.Texture texture,
int x,
int y,
int color)
NOTE: REQUIRES BINDING THE TEXTURE FIRST!
|
static com.badlogic.gdx.graphics.Pixmap |
huePixmap(int width,
int height) |
static com.badlogic.gdx.graphics.Texture |
hueTexture(int width,
int height) |
static boolean |
isDisposed(com.badlogic.gdx.graphics.Pixmap pix) |
static com.badlogic.gdx.graphics.Pixmap |
resize(com.badlogic.gdx.graphics.Pixmap input,
int width,
int height) |
static com.badlogic.gdx.graphics.Pixmap |
rotate(com.badlogic.gdx.graphics.Pixmap input,
float angle) |
static com.badlogic.gdx.graphics.Pixmap |
scale(com.badlogic.gdx.graphics.Pixmap input,
float scale) |
static com.badlogic.gdx.graphics.Pixmap |
scale(com.badlogic.gdx.graphics.Pixmap input,
float scalex,
float scaley) |
static void |
traverse(com.badlogic.gdx.graphics.Pixmap input,
PixmapUtils.PixmapTraverser t) |
static com.badlogic.gdx.graphics.Pixmap |
zoom(com.badlogic.gdx.graphics.Pixmap input,
int scale) |
public static com.badlogic.gdx.graphics.Pixmap copy(com.badlogic.gdx.graphics.Pixmap input)
public static com.badlogic.gdx.graphics.Pixmap scale(com.badlogic.gdx.graphics.Pixmap input,
float scale)
public static com.badlogic.gdx.graphics.Pixmap scale(com.badlogic.gdx.graphics.Pixmap input,
float scalex,
float scaley)
public static com.badlogic.gdx.graphics.Pixmap zoom(com.badlogic.gdx.graphics.Pixmap input,
int scale)
public static com.badlogic.gdx.graphics.Pixmap resize(com.badlogic.gdx.graphics.Pixmap input,
int width,
int height)
public static com.badlogic.gdx.graphics.Pixmap crop(com.badlogic.gdx.graphics.Pixmap input,
int x,
int y,
int width,
int height)
public static com.badlogic.gdx.graphics.Pixmap rotate(com.badlogic.gdx.graphics.Pixmap input,
float angle)
public static boolean isDisposed(com.badlogic.gdx.graphics.Pixmap pix)
public static void traverse(com.badlogic.gdx.graphics.Pixmap input,
PixmapUtils.PixmapTraverser t)
public static com.badlogic.gdx.graphics.Pixmap huePixmap(int width,
int height)
public static com.badlogic.gdx.graphics.Texture hueTexture(int width,
int height)
public static com.badlogic.gdx.graphics.Pixmap blankPixmap()
public static com.badlogic.gdx.graphics.Texture blankTexture()
public static com.badlogic.gdx.graphics.g2d.TextureRegion blankTextureRegion()
public static void drawPixel(com.badlogic.gdx.graphics.Texture texture,
int x,
int y,
int color)