Should Canvas have been Image subclass instead of Node?
swpalmer at gmail.com
Tue Apr 22 23:01:15 UTC 2014
It would be great if you could get a Graphics context for drawing into a
WritableImage instead of having to deal with snapshots. But I suppose you
could build something like that based on Canvas that would update an image.
On Apr 22, 2014 6:52 PM, "Jeff Martin" <jeff at reportmill.com> wrote:
> Just by using it as an ImageView.Image.
> On Apr 22, 2014, at 5:43 PM, John C. Turnbull <ozemale at ozemail.com.au>
> > How would you (easily) use it in the scenegraph if it wasn't a Node?
> > -----Original Message-----
> > From: openjfx-dev [mailto:openjfx-dev-bounces at openjdk.java.net] On
> Behalf Of
> > Jeff Martin
> > Sent: Wednesday, April 23, 2014 8:16 AM
> > To: openjfx-dev at openjdk.java.net Mailing
> > Subject: Should Canvas have been Image subclass instead of Node?
> > I have a case where I need to draw to a canvas and reuse it in multiple
> > nodes. My non-optimal work-around is to take a snapshot and use that,
> but it
> > makes me wonder if Canvas should have been an Image subclass or if
> > WritableImage should get it's own getGraphicsContext() method.
> > jeff=
More information about the openjfx-dev