Class TeaImage

  • All Implemented Interfaces:
    Image

    public class TeaImage
    extends java.lang.Object
    implements Image
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected TeaImage​(java.lang.String id, java.lang.String url, Rect region)  
    • Constructor Detail

      • TeaImage

        protected TeaImage​(java.lang.String id,
                           java.lang.String url,
                           Rect region)
    • Method Detail

      • getId

        public java.lang.String getId()
      • getWidth

        public int getWidth()
        Specified by:
        getWidth in interface Image
      • getHeight

        public int getHeight()
        Specified by:
        getHeight in interface Image
      • getRegion

        public Rect getRegion()
      • getRegion

        public Image getRegion​(Rect region)
        Description copied from interface: Image
        Returns an Image instance that only contains the specified region from within this image.
        Specified by:
        getRegion in interface Image
      • getAlpha

        public int getAlpha​(int x,
                            int y)
        Description copied from interface: Image
        Returns the alpha of a pixel within the image. The returned value is between 0 (fully transparent) and 100 (fully opaque).
        Specified by:
        getAlpha in interface Image
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object