I want to put a simple raster graphics editor into my JavaFX app.
It seems that it can't be done using javafx.scene.image.Image
because the graphics object is read-only.
Can somebody point me how can I do this or maybe there are some classes that provide direct access to pixel map?
upd: it is not necessary for editor to respond quickly, so the suggestions a-la create hidden java.awt.Canvas
, handle all the events on ImageView to draw on the canvas, create by some means an output stream from the canvas to create new javafx Image and put it to ImageView.
Canvas
? I'm working on a similar project and would like to avoid a hiddenCanvas
if possible.Canvas.setScaleX()
and its variants all create anti-aliased images, where I need to display a crisp image for a sprite editor. – Hicks