title: Getting a sub-image of a JavaFX Image for use on Canvas
body: <p>I am messing with game programming in JavaFX, and I made  a spritesheet for the graphics. Currently, I am changing the JavaFX <code>Image</code> to a <code>BufferedImage</code>, then using the <a href="https://docs.oracle.com/javase/8/docs/api/java/awt/image/BufferedImage.html#getSubimage-int-int-int-int-" rel="nofollow"><code>BufferedImage#subImage</code></a> function to get a sub image, then using <code>SwingFXUtils</code> to change it back to a JavaFX <code>Image</code>. I have tried to look for an easier way but have not found one. Is their an easier way to get a JavaFX sub image?</p>