Image (Google App Engine API for Java)

com.google.appengine.api.images

Interface Image

  • All Superinterfaces:
    java.io.Serializable


    public interface Image
    extends java.io.Serializable
    Image represents an image that can be manipulated by the ImagesService.
    • Method Detail

      • getWidth

        int getWidth()
        Gets the width of the image.
        Returns:
        image width
        Throws:
        java.lang.IllegalArgumentException - If the imageData provided is invalid
      • getHeight

        int getHeight()
        Gets the height of the image.
        Returns:
        image height
        Throws:
        java.lang.IllegalArgumentException - If the imageData provided is invalid
      • getFormat

        Image.Format getFormat()
        Gets the encoding format of the image.
        Returns:
        image format
        Throws:
        java.lang.IllegalArgumentException - If the imageData provided is invalid
      • getImageData

        byte[] getImageData()
        Gets the raw imageData of the image.
        Returns:
        the image data of the image
      • setImageData

        void setImageData(byte[] imageData)
        Sets the image to contain the image data contained in imageData.
        Parameters:
        imageData - new image data for the image to store
        Throws:
        java.lang.IllegalArgumentException - If imageData is null or empty
      • getBlobKey

        BlobKey getBlobKey()
        If this image is backed by a blob, return the associated BlobKey. If this method returns non-null, none of the other methods will currently be available.

Send feedback about...