Package arc.graphics

Class Pixmaps

java.lang.Object
arc.graphics.Pixmaps

public class Pixmaps extends Object
Various pixmap utilities.
  • Constructor Details

    • Pixmaps

      public Pixmaps()
  • Method Details

    • noise

      public static Pixmap noise(int w, int h)
    • noiseTex

      public static Texture noiseTex(int w, int h)
    • flip

      public static void flip(Pixmap pixmap)
    • blend

      public static Pixmap blend(PixmapRegion source, PixmapRegion over, float alpha)
    • median

      public static Pixmap median(Pixmap input, int radius, double percentile)
    • median

      public static Pixmap median(Pixmap input, int radius, double percentile, IntSeq tmp)
    • scale

      public static Pixmap scale(Pixmap pixmap, int width, int height, boolean filter)
    • scale

      public static Pixmap scale(Pixmap input, float scale)
    • scale

      public static Pixmap scale(Pixmap input, float scalex, float scaley)
    • outline

      public static Pixmap outline(PixmapRegion region, Color color, int radius)
    • outline

      public static Pixmap outline(Pixmap input, Color color)
      Outlines the input pixmap by 1 pixel.
    • zoom

      public static Pixmap zoom(Pixmap input, int scale)
    • resize

      public static Pixmap resize(Pixmap input, int width, int height)
    • resize

      public static Pixmap resize(Pixmap input, int width, int height, int backgroundColor)
    • crop

      public static Pixmap crop(Pixmap input, int x, int y, int width, int height)
    • rotate

      public static Pixmap rotate(Pixmap input, float angle)
    • empty

      public static boolean empty(int i)
    • huePixmap

      public static Pixmap huePixmap(int width, int height)
    • hueTexture

      public static Texture hueTexture(int width, int height)
    • blankPixmap

      public static Pixmap blankPixmap()
    • blankTexture

      public static Texture blankTexture()
    • blankTextureRegion

      public static TextureRegion blankTextureRegion()
    • drawPixel

      public static void drawPixel(Texture texture, int x, int y, int color)
    • bleed

      public static Pixmap bleed(Pixmap image)
      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

      public static void antialias(Pixmap pixmap)
    • bleed

      public static Pixmap bleed(Pixmap image, int maxIterations)
      Applies alpha bleeding to the target pixmap.
      Returns:
      the input pixmap with its pixels modified.