Class TeaImage
- java.lang.Object
-
- nl.colorize.multimedialib.renderer.teavm.TeaImage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)intgetAlpha(int x, int y)Returns the alpha of a pixel within the image.ColorRGBgetColor(int x, int y)intgetHeight()java.lang.StringgetId()RectgetRegion()ImagegetRegion(Rect region)Returns anImageinstance that only contains the specified region from within this image.intgetWidth()inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
TeaImage
protected TeaImage(java.lang.String id, java.lang.String url, Rect region)
-
-
Method Detail
-
getId
public java.lang.String getId()
-
getRegion
public Rect getRegion()
-
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).
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-