public static class Img.ProcessorStage<STAGE extends Img.ProcessorStage<STAGE,PROCESSOR>,PROCESSOR extends Img.Processor<PROCESSOR,STAGE>> extends Img._Load<STAGE>
| Modifier and Type | Field and Description |
|---|---|
protected float |
compressionQuality
Define the compression quality of the target image
|
protected PROCESSOR |
processor
The processor that apply a certain logic on source and generates the target
|
protected BufferedImage |
target
The image target as a result of processing.
|
| Constructor and Description |
|---|
ProcessorStage(BufferedImage source,
PROCESSOR processor)
Construct a ProcessorBuilder with image source specified
|
ProcessorStage(Lang.Func0<BufferedImage> source,
PROCESSOR processor)
Construct a ProcessorBuilder with an image source provider
|
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
get()
Returns the the target image as a result of processing or source image if no
processor is provided |
Img._Load |
pipeline() |
protected void |
preTransform() |
STAGE |
source(BufferedImage source) |
STAGE |
source(InputStream is) |
appendTo, appendTo, appendWith, appendWith, blur, blur, compress, compressionQuality, copy, crop, crop, crop, dropAlphaChannelIfJPEG, flip, flip, flipVertial, makeNoise, me, pipeline, pipeline, pipeline, pipeline, processor, resize, resize, resize, resize, resize, text, toBase64, toBase64, toByteArray, toByteArray, watermark, watermark, writeTo, writeTo, writeTo, writeToapplybreakOutprotected volatile BufferedImage target
The image target as a result of processing. Note if processor is not provided then it will use source(java.io.InputStream) directly as the target
protected PROCESSOR extends Img.Processor<PROCESSOR,STAGE> processor
The processor that apply a certain logic on source and generates the target
protected float compressionQuality
Define the compression quality of the target image
public ProcessorStage(Lang.Func0<BufferedImage> source, PROCESSOR processor)
Construct a ProcessorBuilder with an image source provider
source - the function that provides the image sourcepublic ProcessorStage(BufferedImage source, PROCESSOR processor)
Construct a ProcessorBuilder with image source specified
source - the image source to be processedpublic BufferedImage get()
Returns the the target image as a result of processing or source image if no processor is provided
public STAGE source(InputStream is)
public STAGE source(BufferedImage source)
public Img._Load pipeline()
protected void preTransform()
Copyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.