|
kiyut.citra 3.7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkiyut.citra.canvas.FXRenderer
public class FXRenderer
FXRenderer for the FXCanvas
| Field Summary | |
|---|---|
protected FXCanvas |
canvas
|
protected File |
file
|
protected BufferedImageOp |
filterOp
|
protected BufferedImage |
image
|
protected boolean |
reloadFile
|
protected boolean |
selectionFilter
|
protected BufferedImage |
source
|
| Constructor Summary | |
|---|---|
FXRenderer(FXCanvas canvas)
Creates a new instance of FXRenderer |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected File file
protected boolean reloadFile
protected BufferedImage image
protected BufferedImage source
protected BufferedImageOp filterOp
protected FXCanvas canvas
protected boolean selectionFilter
| Constructor Detail |
|---|
public FXRenderer(FXCanvas canvas)
| Method Detail |
|---|
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()
getSourceImage(),
getRenderedImage(),
setFilterOp(BufferedImageOp)
|
kiyut.citra 3.7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||