Interface Image
-
- All Known Implementing Classes:
AWTImage,GDXTexture,TeaImage
public interface ImageRepresents an image based on raster graphics. Images be loaded from one of the common file formats (for example PNG or JPEG), but can also be created programmatically. Images stored in files are loaded using aMediaLoader.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.intgetWidth()
-
-
-
Method Detail
-
getWidth
int getWidth()
-
getHeight
int getHeight()
-
getRegion
Image getRegion(Rect region)
Returns anImageinstance that only contains the specified region from within this image.
-
getColor
ColorRGB getColor(int x, int y)
-
getAlpha
int getAlpha(int x, int y)Returns the alpha of a pixel within the image. The returned value is between 0 (fully transparent) and 100 (fully opaque).
-
-