public class FXRenderer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected FXCanvas |
canvas |
protected File |
file |
protected BufferedImageOp |
filterOp |
protected BufferedImage |
image |
protected boolean |
reloadFile |
protected boolean |
selectionFilter |
protected BufferedImage |
source |
| Constructor and Description |
|---|
FXRenderer(FXCanvas canvas)
Creates a new instance of FXRenderer
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
Apply filter operation which means change the source image into the result of filter
|
protected void |
crop(Area area)
Crop Source Image
|
void |
discard()
Discard filter operation
|
BufferedImageOp |
getFilterOp()
Return the filterOp
|
File |
getImageFile()
Return file
|
BufferedImage |
getRenderedImage()
Return the rendered image
|
BufferedImage |
getSourceImage()
Return the source image
|
void |
render()
render the image using the applied filter from sourceImage into renderedImage
if there are selection Area, the filter will only applied to that area,
otherwise the whole image.
|
void |
setFilterOp(BufferedImageOp filterOp)
Set the filterOp
|
void |
setImageFile(File file,
boolean open)
Set the Image file, if the param open is true file will be loaded after the first render call
otherwise only set the file only, does not open or loading the image file
|
protected File file
protected boolean reloadFile
protected BufferedImage image
protected BufferedImage source
protected BufferedImageOp filterOp
protected FXCanvas canvas
protected boolean selectionFilter
public FXRenderer(FXCanvas canvas)
public BufferedImage getSourceImage()
public BufferedImage getRenderedImage()
public void setImageFile(File file, boolean open)
file - Fileopen - true/false, if true file will be loaded after the first render callgetImageFile()public File getImageFile()
setImageFile(File,boolean)public void setFilterOp(BufferedImageOp filterOp)
filterOp - BufferedImageOpgetFilterOp()public BufferedImageOp getFilterOp()
setFilterOp(BufferedImageOp)public void apply()
public void discard()
protected void crop(Area area)
area - the specified area for croppingpublic void render()