ImagesServiceFactory (Google App Engine API for Java)

com.google.appengine.api.images

Class ImagesServiceFactory

  • java.lang.Object
    • com.google.appengine.api.images.ImagesServiceFactory
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static ImagesService getImagesService()
      Creates an implementation of the ImagesService.
      static Composite makeComposite(Image image, int xOffset, int yOffset, float opacity, Composite.Anchor anchor)
      Creates an image composition operation.
      static CompositeTransform makeCompositeTransform()
      Creates a composite transform that can represent multiple transforms applied in series.
      static CompositeTransform makeCompositeTransform(java.util.Collection<Transform> transforms)
      Creates a composite transform that can represent multiple transforms applied in series.
      static Transform makeCrop(double leftX, double topY, double rightX, double bottomY)
      Creates a transform that will crop an image to fit within the bounding box specified.
      static Transform makeCrop(float leftX, float topY, float rightX, float bottomY)
      Creates a transform that will crop an image to fit within the bounding box specified.
      static Transform makeHorizontalFlip()
      Creates a transform that will horizontally flip an image.
      static Image makeImage(byte[] imageData)
      Creates an image from the provided imageData.
      static Image makeImageFromBlob(BlobKey blobKey)
      Create an image backed by the specified blobKey.
      static Image makeImageFromFilename(java.lang.String filename)
      Create an image backed by the specified filename.
      static Transform makeImFeelingLucky()
      Creates a transform that automatically adjust contrast and color levels.
      static Transform makeResize(int width, int height)
      Creates a transform that will resize an image to fit within a box with width width and height height.
      static Transform makeResize(int width, int height, boolean allowStretch)
      Creates a resize transform that will resize an image to fit within a box of width width and height height.
      static Transform makeResize(int width, int height, double cropOffsetX, double cropOffsetY)
      Creates a transform that will resize an image to exactly fit a box with width width and height height by resizing to the less constraining dimension and cropping the other.
      static Transform makeResize(int width, int height, float cropOffsetX, float cropOffsetY)
      Creates a transform that will resize an image to exactly fit a box with width width and height height by resizing to the less constraining dimension and cropping the other.
      static Transform makeRotate(int degrees)
      Creates a transform that rotates an image by degrees degrees clockwise.
      static Transform makeVerticalFlip()
      Creates a transform that will vertically flip an image.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getImagesService

        public static ImagesService getImagesService()
        Creates an implementation of the ImagesService.
        Returns:
        an images service
      • makeImage

        public static Image makeImage(byte[] imageData)
        Creates an image from the provided imageData.
        Parameters:
        imageData - image data to store in the image
        Returns:
        an Image containing the supplied image data
        Throws:
        java.lang.IllegalArgumentException - If imageData is null or empty.