Re: How to get raw pixel data into JavaFX

2015-04-29 Thread Benjamin Gudehus
Hi Philipp, as far as I know PixelWriter, WritableImage and ImageView fits better for handling raster images than Canvas. TestFX uses PixelWriter.setArgb() to convert screenshots from Glass with Monocle to PNG files: https://github.com/TestFX/TestFX/blob/fd75122/subprojects/testfx-core/src/main/

How to get raw pixel data into JavaFX

2015-04-29 Thread Philipp Dörfler
Hello list, I got some very low level pixel data residing in memory with a pixel format and want to get that into JavaFX. I am talking about raw bytes, BGR, 24 bit per pixel etc.. The library providing this pixel data is OpenCV and although it allows for encoding the data into a standard format