Uses of Class
com.badlogic.gdx.graphics.Pixmap
-
Packages that use Pixmap Package Description com.badlogic.gdx com.badlogic.gdx.assets.loaders com.badlogic.gdx.graphics com.badlogic.gdx.graphics.g2d com.badlogic.gdx.graphics.glutils com.badlogic.gdx.utils -
-
Uses of Pixmap in com.badlogic.gdx
Methods in com.badlogic.gdx with parameters of type Pixmap Modifier and Type Method Description CursorGraphics. newCursor(Pixmap pixmap, int xHotspot, int yHotspot)Create a new cursor represented by thePixmap. -
Uses of Pixmap in com.badlogic.gdx.assets.loaders
Methods in com.badlogic.gdx.assets.loaders that return Pixmap Modifier and Type Method Description PixmapPixmapLoader. loadSync(AssetManager manager, java.lang.String fileName, FileHandle file, PixmapLoader.PixmapParameter parameter) -
Uses of Pixmap in com.badlogic.gdx.graphics
Methods in com.badlogic.gdx.graphics that return Pixmap Modifier and Type Method Description PixmapTextureData. consumePixmap()Returns thePixmapfor upload by Texture.static PixmapPixmap. createFromFrameBuffer(int x, int y, int w, int h)Creates a Pixmap from a part of the current framebuffer.static PixmapPixmapIO. readCIM(FileHandle file)Reads thePixmapfrom the given file, assuming the Pixmap was written with thePixmapIO.writeCIM(FileHandle, Pixmap)method.Methods in com.badlogic.gdx.graphics with parameters of type Pixmap Modifier and Type Method Description voidPixmap.DownloadPixmapResponseListener. downloadComplete(Pixmap pixmap)Called on the render thread when image was downloaded successfully.voidTexture. draw(Pixmap pixmap, int x, int y)Draws the givenPixmapto the texture at position x, y.voidPixmap. drawPixmap(Pixmap pixmap, int x, int y)Draws an area from another Pixmap to this Pixmap.voidPixmap. drawPixmap(Pixmap pixmap, int x, int y, int srcx, int srcy, int srcWidth, int srcHeight)Draws an area from another Pixmap to this Pixmap.voidPixmap. drawPixmap(Pixmap pixmap, int srcx, int srcy, int srcWidth, int srcHeight, int dstx, int dsty, int dstWidth, int dstHeight)Draws an area from another Pixmap to this Pixmap.voidPixmapIO.PNG. write(FileHandle file, Pixmap pixmap)voidPixmapIO.PNG. write(java.io.OutputStream output, Pixmap pixmap)Writes the pixmap to the stream without closing the stream.static voidPixmapIO. writeCIM(FileHandle file, Pixmap pixmap)Writes thePixmapto the given file using a custom compression scheme.static voidPixmapIO. writePNG(FileHandle file, Pixmap pixmap)Writes the pixmap as a PNG with compression.static voidPixmapIO. writePNG(FileHandle file, Pixmap pixmap, int compression, boolean flipY)Writes the pixmap as a PNG.Constructors in com.badlogic.gdx.graphics with parameters of type Pixmap Constructor Description Cubemap(Pixmap positiveX, Pixmap negativeX, Pixmap positiveY, Pixmap negativeY, Pixmap positiveZ, Pixmap negativeZ)Construct a Cubemap with the specifiedPixmaps for the sides, does not generate mipmaps.Cubemap(Pixmap positiveX, Pixmap negativeX, Pixmap positiveY, Pixmap negativeY, Pixmap positiveZ, Pixmap negativeZ, boolean useMipMaps)Construct a Cubemap with the specifiedPixmaps for the sides, optionally generating mipmaps.Texture(Pixmap pixmap)Texture(Pixmap pixmap, boolean useMipMaps)Texture(Pixmap pixmap, Pixmap.Format format, boolean useMipMaps) -
Uses of Pixmap in com.badlogic.gdx.graphics.g2d
Methods in com.badlogic.gdx.graphics.g2d that return Pixmap Modifier and Type Method Description PixmapPixmapPacker.Page. getPixmap()Methods in com.badlogic.gdx.graphics.g2d with parameters of type Pixmap Modifier and Type Method Description RectanglePixmapPacker. pack(Pixmap image)Inserts the pixmap without a name.RectanglePixmapPacker. pack(java.lang.String name, Pixmap image)Inserts the pixmap.Method parameters in com.badlogic.gdx.graphics.g2d with type arguments of type Pixmap Modifier and Type Method Description voidPixmapPacker.GuillotineStrategy. sort(Array<Pixmap> pixmaps)voidPixmapPacker.PackStrategy. sort(Array<Pixmap> images)voidPixmapPacker.SkylineStrategy. sort(Array<Pixmap> images)voidPixmapPacker. sort(Array<Pixmap> images)Sorts the images to the optimzal order they should be packed. -
Uses of Pixmap in com.badlogic.gdx.graphics.glutils
Methods in com.badlogic.gdx.graphics.glutils that return Pixmap Modifier and Type Method Description PixmapETC1TextureData. consumePixmap()PixmapFileTextureData. consumePixmap()PixmapFloatTextureData. consumePixmap()PixmapGLOnlyTextureData. consumePixmap()PixmapKTXTextureData. consumePixmap()PixmapMipMapTextureData. consumePixmap()PixmapPixmapTextureData. consumePixmap()static PixmapETC1. decodeImage(ETC1.ETC1Data etc1Data, Pixmap.Format format)Takes ETC1 compressed image data and converts it to aPixmap.Format.RGB565orPixmap.Format.RGB888Pixmap.Methods in com.badlogic.gdx.graphics.glutils with parameters of type Pixmap Modifier and Type Method Description static ETC1.ETC1DataETC1. encodeImage(Pixmap pixmap)Encodes the image via the ETC1 compression scheme.static ETC1.ETC1DataETC1. encodeImagePKM(Pixmap pixmap)Encodes the image via the ETC1 compression scheme.static voidMipMapGenerator. generateMipMap(int target, Pixmap pixmap, int textureWidth, int textureHeight)static voidMipMapGenerator. generateMipMap(Pixmap pixmap, int textureWidth, int textureHeight)voidFacedCubemapData. load(Cubemap.CubemapSide side, Pixmap pixmap)Sets the specified side of this cubemap to the specifiedPixmap, overwriting any previous data set to that side.Constructors in com.badlogic.gdx.graphics.glutils with parameters of type Pixmap Constructor Description FacedCubemapData(Pixmap positiveX, Pixmap negativeX, Pixmap positiveY, Pixmap negativeY, Pixmap positiveZ, Pixmap negativeZ)Construct a Cubemap with the specifiedPixmaps for the sides, does not generate mipmaps.FacedCubemapData(Pixmap positiveX, Pixmap negativeX, Pixmap positiveY, Pixmap negativeY, Pixmap positiveZ, Pixmap negativeZ, boolean useMipMaps)Construct a Cubemap with the specifiedPixmaps for the sides, optionally generating mipmaps.FileTextureData(FileHandle file, Pixmap preloadedPixmap, Pixmap.Format format, boolean useMipMaps)PixmapTextureData(Pixmap pixmap, Pixmap.Format format, boolean useMipMaps, boolean disposePixmap)PixmapTextureData(Pixmap pixmap, Pixmap.Format format, boolean useMipMaps, boolean disposePixmap, boolean managed) -
Uses of Pixmap in com.badlogic.gdx.utils
Methods in com.badlogic.gdx.utils that return Pixmap Modifier and Type Method Description static PixmapScreenUtils. getFrameBufferPixmap(int x, int y, int w, int h)Deprecated.usecreateFromFrameBuffer(int, int, int, int)instead.
-