imageview - Loading .tif / .tiff with fxml/javafx -


how can load .tif fxml or javafx ?

i tried this:

<imageview>   <image>     <image url="@bsp.tif"/>   </image> </imageview> 

but no response @ all.

thanks in advance,

zombie

tiff image loading not supported javafx 2.2 image class.

to load tiff javafx, need to:

  1. load image using library, such java advanced imaging (jai) imageio.
  2. the image loading library create swing buffered image.
  3. you can convert swing bufferedimage javafx image format, using swingfxutils.tofximage.

likely, better convert tiff different format using external tool such photoshop rather read tiff in java , convert javafx image.

rt-6038 - native support tiff images in javafx scheduled implementation in post initial java 8 release.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -