public static class Pipeline.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Pipeline |
build()
Creates a Pipeline from the Pipeline builder.
|
Pipeline.Builder |
format(Pipeline.Format format)
Specifies the output format for assets processed by this Pipeline.
|
Pipeline.Builder |
resize(int width,
int height)
Resizes the input asset to the specified dimensions.
|
Pipeline.Builder |
resize(int width,
int height,
Resize.Mode mode)
Resizes the input asset to the specified dimensions using the specified mode of operation.
|
public Pipeline.Builder resize(int width, int height)
resize(int, int, Resize.Mode) with Resize.Mode.FIT
as mode of operation.width - Target widthheight - Target heightpublic Pipeline.Builder resize(int width, int height, Resize.Mode mode)
Resize.Mode for the different resize behaviours.width - Target widthheight - Target heightmode - Resize modepublic Pipeline.Builder format(Pipeline.Format format)
Pipeline.Format.Jpeg.format - Output formatpublic Pipeline build()
AmetoException - if the Pipeline information could not be submitted