Problem with Graphics2D from BufferedImage

A discussion forum for FXGraphics2D (adds a Java2D API to the JavaFX Canvas).
Posts: 1
Joined: Sat Jun 16, 2018 12:19 pm
antibot: No, of course not.

Problem with Graphics2D from BufferedImage

Post by joejonsme » Wed Jun 20, 2018 7:31 am


I am having a problem drawing a GenralPath onto a Graphics2D created from a BufferedImage. It works fine on a Graphics2D created from downcasting a Graphics object and displayed on the screen though. Any suggestions? I have posted the code stripped out of the whole program to keep it short below. I was trying to save a jpg file created from a BufferedImage and have to use a GeneralPath to draw the image as it's shape will change based on the arguments provided.

Please help.

I didn't find the right solution from the Internet.

References:- ... feredImage
Product animation studio