java - JavaFX: get BufferedImage from path -


coming awt/swing, i've started experimenting bit javafx last few days. realized used in thousands lines of codes can done in few hundred.

one problem came across is, however, following: i'm trying develop small painting app user can choose brush size , color strokes. strokes user makes, use javafx class path , add these paths group (which added pane) - automagically - painted. want store resulting image jpg , try raster paths in bufferedimage. however, found no functions in api me that.

i tried use canvas , graphicscontext, did not help. how raster javafx paths list on image?

  1. take snapshot of group javafx image.
  2. use swingfxutils convert javafx image snapshot buffered image.
  3. use imageio convert buffered image jpeg, png, etc

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -