Class GDXTexture
- java.lang.Object
-
- nl.colorize.multimedialib.renderer.libgdx.GDXTexture
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGDXTexture(com.badlogic.gdx.graphics.Texture texture)protectedGDXTexture(com.badlogic.gdx.graphics.Texture texture, Rect bounds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()intgetAlpha(int x, int y)Returns the alpha of a pixel within the image.ColorRGBgetColor(int x, int y)intgetHeight()ImagegetRegion(Rect region)Returns anImageinstance that only contains the specified region from within this image.com.badlogic.gdx.graphics.TexturegetTexture()com.badlogic.gdx.graphics.g2d.TextureRegiongetTextureRegion()intgetWidth()
-
-
-
Constructor Detail
-
GDXTexture
protected GDXTexture(com.badlogic.gdx.graphics.Texture texture, Rect bounds)
-
GDXTexture
protected GDXTexture(com.badlogic.gdx.graphics.Texture texture)
-
-
Method Detail
-
getTexture
public com.badlogic.gdx.graphics.Texture getTexture()
-
getTextureRegion
public com.badlogic.gdx.graphics.g2d.TextureRegion getTextureRegion()
-
getRegion
public Image getRegion(Rect region)
Description copied from interface:ImageReturns anImageinstance that only contains the specified region from within this image.
-
getAlpha
public int getAlpha(int x, int y)Description copied from interface:ImageReturns the alpha of a pixel within the image. The returned value is between 0 (fully transparent) and 100 (fully opaque).
-
dispose
public void dispose()
-
-