public static class Img._Load<T extends Img._Load> extends Lang.Provider<BufferedImage>
| Modifier and Type | Field and Description |
|---|---|
protected float |
compressionQuality
Define the compression quality of the target image
|
protected BufferedImage |
source |
applybreakOutprotected BufferedImage source
protected float compressionQuality
Define the compression quality of the target image
public T compressionQuality(float compressionQuality)
public void writeTo(String fileName)
public void writeTo(File file)
public void writeTo(OutputStream os, String mimeType)
public byte[] toByteArray()
public byte[] toByteArray(String mimeType)
public String toBase64()
public void dropAlphaChannelIfJPEG(ImageWriter writer)
public BufferedImage get()
Lang.ProviderGet the element
get in class Lang.Provider<BufferedImage>public <B extends Img.ProcessorStage<B,P>,P extends Img.Processor<P,B>> B pipeline(P processor)
Pipeline the target image as an input (source) image to to another processor
B - the processor builder typeP - the processor typeprocessor - the next processorProcessBuilder for the processor specifiedpublic Img.ProcessorStage pipeline(Img.Processor p, Img.Processor... others)
public Img.ProcessorStage pipeline(List<? extends Img.Processor> processors)
public <B extends Img.ProcessorStage<B,P>,P extends Img.Processor<P,B>> B pipeline(Class<? extends P> processorClass)
public Img.Resizer.Stage resize()
public Img.Resizer.Stage resize(float scale)
public Img.Resizer.Stage resize(int w, int h)
public Img.Resizer.Stage resize(Lang.Tuple<Integer,Integer> dimension)
public Img.Resizer.Stage resize(Dimension dimension)
public Img.Cropper.Stage crop()
public Img.Cropper.Stage crop(int x1, int y1, int x2, int y2)
public Img.Cropper.Stage crop(Lang.Tuple<Integer,Integer> leftTop, Lang.Tuple<Integer,Integer> rightBottom)
public Img.TextWriter.Stage text(String text)
public Img.TextWriter.Stage watermark()
public Img.TextWriter.Stage watermark(String text)
public Img.Blur.Stage blur()
public Img.Blur.Stage blur(int level)
public Img.NoiseMaker.Stage makeNoise()
public Img.Flip.Stage flip()
public Img.Flip.Stage flipVertial()
public Img.Flip.Stage flip(Img.Direction dir)
public Img.ProcessorStage compress(float compressionQuality)
public Img.ProcessorStage copy()
public Img.ProcessorStage processor(Img.Processor processor)
public Img.Concatenater.Stage appendWith(Lang.Func0<BufferedImage> secondImange)
public Img.Concatenater.Stage appendTo(Lang.Func0<BufferedImage> firstImage)
public Img.Concatenater.Stage appendWith(BufferedImage secondImange)
public Img.Concatenater.Stage appendTo(BufferedImage firstImage)
protected T me()
Copyright © 2014–2021 OSGL (Open Source General Library). All rights reserved.