Java com.badlogic.gdx.graphics Pixmap fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.graphics Pixmap fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.graphics Pixmap.

The text is from its open source code.

Subclass

com.badlogic.gdx.graphics.Pixmap has subclasses.
Click this link to see all its subclasses.

Constructor

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.

Method

voiddispose()
Releases all resources associated with this Pixmap.
voiddrawCircle(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.
voiddrawLine(int x, int y, int x2, int y2)
Draws a line between the given coordinates using the currently set color.
voiddrawPixel(int x, int y)
Draws a pixel at the given location with the current color.
voiddrawPixel(int x, int y, int color)
Draws a pixel at the given location with the given color.
voiddrawPixmap(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.
voiddrawPixmap(Pixmap pixmap, int x, int y)
Draws an area form another Pixmap to this Pixmap.
voiddrawPixmap(Pixmap pixmap, int x, int y, int srcx, int srcy, int srcWidth, int srcHeight)
Draws an area form another Pixmap to this Pixmap.
voiddrawRectangle(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.
voidfill()
Fills the complete bitmap with the currently set color.
voidfillCircle(int x, int y, int radius)
Fills a circle with the center at x,y and a radius using the current color.
voidfillRectangle(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.
BlendinggetBlending()
FormatgetFormat()
intgetGLFormat()
Returns the OpenGL ES format of this Pixmap.
intgetGLInternalFormat()
Returns the OpenGL ES format of this Pixmap.
intgetGLType()
Returns the OpenGL ES type of this Pixmap.
intgetHeight()
intgetPixel(int x, int y)
Returns the 32-bit RGBA8888 value of the pixel at x, y.
ByteBuffergetPixels()
Returns the direct ByteBuffer holding the pixel data.
intgetWidth()
voidsetBlending(Blending blending)
Sets the type of Blending to be used for all operations.
voidsetColor(float r, float g, float b, float a)
Sets the color for the following drawing operations.
voidsetColor(int color)
Sets the color for the following drawing operations
voidsetColor(Color color)
Sets the color for the following drawing operations.
voidsetFilter(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) .