public abstract static class Img.BinarySourceProcessor<PROCESSOR extends Img.BinarySourceProcessor<PROCESSOR,STAGE>,STAGE extends Img.ProcessorStage<STAGE,PROCESSOR>> extends Img.Processor<PROCESSOR,STAGE>
The base class that process two image sources and produce result image
Modifier and Type | Class and Description |
---|---|
static class |
Img.BinarySourceProcessor.ScaleFix
How to handle two image sources scale mismatch
|
Modifier and Type | Field and Description |
---|---|
protected BufferedImage |
source2
The second source image
|
protected int |
source2Height
The second source image height
|
protected double |
source2Ratio
The second source image width/height ratio
|
protected int |
source2Width
The second source image width
|
g, source, sourceHeight, sourceRatio, sourceWidth, target
Constructor and Description |
---|
Img.BinarySourceProcessor() |
Modifier and Type | Method and Description |
---|---|
Img.Processor |
secondSource(BufferedImage source)
Set second source image.
|
createGraphics2D, createStage, createStage, createTarget, g, process, process, produce, run, setTargetSpec, setTargetSpec, source
get
apply
breakOut
protected BufferedImage source2
The second source image
protected int source2Width
The second source image width
protected int source2Height
The second source image height
protected double source2Ratio
The second source image width/height ratio
public Img.Processor secondSource(BufferedImage source)
Set second source image. This method will calculate and cache the following parameters about the source image:
source
- the second source imageCopyright © 2014–2018 OSGL (Open Source General Library). All rights reserved.