Package arc.graphics
Class Pixmaps
java.lang.Object
arc.graphics.Pixmaps
Various pixmap utilities.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static Pixmap
static Texture
static TextureRegion
static Pixmap
Applies alpha bleeding to the target pixmap, but with only one iteration.static Pixmap
Applies alpha bleeding to the target pixmap.static Pixmap
blend
(PixmapRegion source, PixmapRegion over, float alpha) static Pixmap
static void
static boolean
empty
(int i) static void
static Pixmap
huePixmap
(int width, int height) static Texture
hueTexture
(int width, int height) static Pixmap
static Pixmap
static Pixmap
noise
(int w, int h) static Texture
noiseTex
(int w, int h) static Pixmap
outline
(PixmapRegion region, Color color, int radius) static Pixmap
Outlines the input pixmap by 1 pixel.static Pixmap
static Pixmap
static Pixmap
static Pixmap
static Pixmap
static Pixmap
static Pixmap
-
Constructor Details
-
Pixmaps
public Pixmaps()
-
-
Method Details
-
noise
-
noiseTex
-
flip
-
blend
-
median
-
median
-
scale
-
scale
-
scale
-
outline
-
outline
Outlines the input pixmap by 1 pixel. -
zoom
-
resize
-
resize
-
crop
-
rotate
-
empty
public static boolean empty(int i) -
huePixmap
-
hueTexture
-
blankPixmap
-
blankTexture
-
blankTextureRegion
-
drawPixel
-
bleed
Applies alpha bleeding to the target pixmap, but with only one iteration. This is faster than standard iterative bleeding.- Returns:
- the input pixmap with its pixels modified.
-
antialias
-
bleed
Applies alpha bleeding to the target pixmap.- Returns:
- the input pixmap with its pixels modified.
-