|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ImagesService
The images service provides methods to apply transformations to images.
| Nested Class Summary | |
|---|---|
static class |
ImagesService.OutputEncoding
Valid output encoding formats usable for image transforms. |
| Field Summary | |
|---|---|
static int |
MAX_COMPOSITES_PER_REQUEST
|
static int |
MAX_RESIZE_DIMENSIONS
|
static int |
MAX_TRANSFORMS_PER_REQUEST
|
| Method Summary | |
|---|---|
Image |
applyTransform(Transform transform,
Image image)
Applies the provided transform to the provided image
encoding the transformed image stored using PNG file format. |
Image |
applyTransform(Transform transform,
Image image,
ImagesService.OutputEncoding encoding)
Applies the provided transform to the provided image
encoding the transformed image stored using encoding file
format. |
Image |
composite(java.util.Collection<Composite> composites,
int width,
int height,
long color)
Applies the provided Collection of Composites using a
canvas with dimensions determined by width and height
and background color color. |
Image |
composite(java.util.Collection<Composite> composites,
int width,
int height,
long color,
ImagesService.OutputEncoding encoding)
Applies the provided Collection of Composites using a
canvas with dimensions determined by width and height
and background color color. |
int[][] |
histogram(Image image)
Calculates the histogram of the image. |
| Field Detail |
|---|
static final int MAX_TRANSFORMS_PER_REQUEST
static final int MAX_RESIZE_DIMENSIONS
static final int MAX_COMPOSITES_PER_REQUEST
| Method Detail |
|---|
Image applyTransform(Transform transform,
Image image)
transform to the provided image
encoding the transformed image stored using PNG file format. The
transform is applied in place to the provided image.
transform - transform to be appliedimage - image to be transformed
java.lang.IllegalArgumentException - If transform or image
are invalid.
ImagesServiceFailureException - If there is a problem with the
Images Service
Image applyTransform(Transform transform,
Image image,
ImagesService.OutputEncoding encoding)
transform to the provided image
encoding the transformed image stored using encoding file
format. The transform is applied in place to the provided image.
transform - transform to be appliedimage - image to be transformedencoding - output encoding to be used
java.lang.IllegalArgumentException - If transform, image or
encoding are invalid.
ImagesServiceFailureException - If there is a problem with the
Images Service
Image composite(java.util.Collection<Composite> composites,
int width,
int height,
long color)
Collection of Composites using a
canvas with dimensions determined by width and height
and background color color. Uses PNG as its output encoding.
composites - Compositing operations to be applied.width - Width of the canvas in pixels.height - Height of the canvas in pixels.color - Background color of the canvas in ARGB format.
java.lang.IllegalArgumentException - If width or height is
greater than 4000, color is outside the range
[0, 0xffffffff], composites contains more than
16 elements or something is wrong with
the contents of composites.
ImagesServiceFailureException - If there is a problem with the
Images Service
Image composite(java.util.Collection<Composite> composites,
int width,
int height,
long color,
ImagesService.OutputEncoding encoding)
Collection of Composites using a
canvas with dimensions determined by width and height
and background color color.
composites - Compositing operations to be applied.width - Width of the canvas in pixels.height - Height of the canvas in pixels.color - Background color of the canvas in ARGB format.encoding - Encoding to be used for the resulting image.
java.lang.IllegalArgumentException - If width or height is
greater than 4000, color is outside the range
[0, 0xffffffff], composites contains more than
16 elements or something is wrong with
the contents of composites.
ImagesServiceFailureException - If there is a problem with the
Images Serviceint[][] histogram(Image image)
image - image for which to calculate a histogram
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||