Example usage for Java com.badlogic.gdx.graphics Pixmap fields, constructors, methods, implement or subclass
The text is from its open source code.
Pixmap(FileHandle file) Creates a new Pixmap instance from the given file. | |
Pixmap(Gdx2DPixmap pixmap) Constructs a new Pixmap from a Gdx2DPixmap . | |
Pixmap(int width, int height, Format format) Creates a new Pixmap instance with the given width, height and format. | |
Pixmap(byte[] encodedData, int offset, int len) Creates a new Pixmap instance from the given encoded image data. |
void | dispose() Releases all resources associated with this Pixmap. |
void | drawCircle(int x, int y, int radius) Draws a circle outline with the center at x,y and a radius using the current color and stroke width. |
void | drawLine(int x, int y, int x2, int y2) Draws a line between the given coordinates using the currently set color. |
void | drawPixel(int x, int y) Draws a pixel at the given location with the current color. |
void | drawPixel(int x, int y, int color) Draws a pixel at the given location with the given color. |
void | drawPixmap(Pixmap pixmap, int srcx, int srcy, int srcWidth, int srcHeight, int dstx, int dsty, int dstWidth, int dstHeight) Draws an area form another Pixmap to this Pixmap. |
void | drawPixmap(Pixmap pixmap, int x, int y) Draws an area form another Pixmap to this Pixmap. |
void | drawPixmap(Pixmap pixmap, int x, int y, int srcx, int srcy, int srcWidth, int srcHeight) Draws an area form another Pixmap to this Pixmap. |
void | drawRectangle(int x, int y, int width, int height) Draws a rectangle outline starting at x, y extending by width to the right and by height downwards (y-axis points downwards) using the current color. |
void | fill() Fills the complete bitmap with the currently set color. |
void | fillCircle(int x, int y, int radius) Fills a circle with the center at x,y and a radius using the current color. |
void | fillRectangle(int x, int y, int width, int height) Fills a rectangle starting at x, y extending by width to the right and by height downwards (y-axis points downwards) using the current color. |
Blending | getBlending() |
Format | getFormat() |
int | getGLFormat() Returns the OpenGL ES format of this Pixmap. |
int | getGLInternalFormat() Returns the OpenGL ES format of this Pixmap. |
int | getGLType() Returns the OpenGL ES type of this Pixmap. |
int | getHeight() |
int | getPixel(int x, int y) Returns the 32-bit RGBA8888 value of the pixel at x, y. |
ByteBuffer | getPixels() Returns the direct ByteBuffer holding the pixel data. |
int | getWidth() |
void | setBlending(Blending blending) Sets the type of Blending to be used for all operations. |
void | setColor(float r, float g, float b, float a) Sets the color for the following drawing operations. |
void | setColor(int color) Sets the color for the following drawing operations |
void | setColor(Color color) Sets the color for the following drawing operations. |
void | setFilter(Filter filter) Sets the type of interpolation Filter to be used in conjunction with Pixmap#drawPixmap(Pixmap,int,int,int,int,int,int,int,int) . |