Class GDXImage
- java.lang.Object
-
- nl.colorize.multimedialib.renderer.libgdx.GDXImage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageextractRegion(Rect region)Returns a newImageinstance that is based on the same source image, but only contains the specified rectangular region within the source image.intgetAlpha(int x, int y)Returns the alpha of a pixel within the image.ColorRGBgetColor(int x, int y)Returns the RGB color value of a pixel within the image.RectgetRegion()com.badlogic.gdx.graphics.TexturegetTexture()com.badlogic.gdx.graphics.g2d.TextureRegiongetTextureRegion()
-
-
-
Constructor Detail
-
GDXImage
protected GDXImage(com.badlogic.gdx.graphics.Texture texture, Rect bounds)
-
GDXImage
protected GDXImage(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()
-
extractRegion
public Image extractRegion(Rect region)
Description copied from interface:ImageReturns a newImageinstance that is based on the same source image, but only contains the specified rectangular region within the source image.- Specified by:
extractRegionin interfaceImage
-
getColor
public ColorRGB getColor(int x, int y)
Description copied from interface:ImageReturns the RGB color value of a pixel within the image. This does not include the pixel's alpha value even if the image does support transparency. The alpha value can be retrieved separately usingImage.getAlpha(int, int).
-
-