public static class Pipeline.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Pipeline.Builder |
autoOrient() |
Pipeline.FinalizableBuilder |
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,
Pipeline.ResizeMode mode)
Resizes the input asset to the specified dimensions using the specified mode of operation.
|
public Pipeline.Builder autoOrient()
public Pipeline.Builder resize(int width, int height)
This is identical to calling #resize(int, int, ResizeMode) with Pipeline.ResizeMode.FIT
as mode of operation.
width - Target widthheight - Target heightpublic Pipeline.Builder resize(int width, int height, Pipeline.ResizeMode mode)
Pipeline.ResizeMode for the different resize behaviours.width - Target widthheight - Target heightmode - Resize modepublic Pipeline.FinalizableBuilder format(Pipeline.Format format)
Pipeline.Format.Jpeg.format - Output format