Does JavaFX support the TIFF-format?

We are considering to use JavaFX to rewrite one of our C++ desktop apps.
The app should be able to show TIFF-images though.
Does JavaFX support the TIFF-format?
The JavaFX-script below does not show the TIFF-image nor does it throw an Exception.
javafx.stage.Stage {
title : "Hello World"
scene: javafx.scene.Scene {
width: 200
height: 200
content: [
javafx.scene.image.ImageView {
image: javafx.scene.image.Image {
url: "file:/C:/temp/HelloWorld.tiff"
}

An altenative...
public class TIFFImageView extends CustomNode{
    public-init var fileName: String;
    public var imgScaleX: Number = 1;
    public var imgScaleY: Number = 1;
    public var nbFrame: Number = 0;
    public var currentFrame: Number = -1 on replace {
        displayFrame();
    public var tiffDecoder: ImageDecoder;
    public var imageView: ImageView;
    public function displayFrame() {
        try {
            if(currentFrame >= 0) {
                var ri = tiffDecoder.decodeAsRenderedImage(currentFrame);
                var pi = PlanarImage.wrapRenderedImage(ri);
                imgScaleX = 580 / pi.getWidth();
                imgScaleY = 450 / pi.getHeight();
                imageView.image = Image.fromBufferedImage(pi.getAsBufferedImage());
        } catch (e: Exception) {
            println("display frame error: {e}");
    function loadFile() {
        try {
            var tifFile = new FileSeekableStream(fileName);
            tiffDecoder = ImageCodec.createImageDecoder("tiff", tifFile, null);
            nbFrame = tiffDecoder.getNumPages();
            if( nbFrame > 0) {
                currentFrame = 0;
        } catch (e: Exception) {
            println("load file error: {e}");
    init {
        loadFile();
    override public function create(): Node {
        Group {
            content: [
                VBox {
                    translateX: 10
                    translateX: 10
                    spacing: 20
                    content: [
                        HBox {
                            spacing: 20
                            content: [
                                SwingButton {
                                    text: "Load Image"
                                    action: function() {
                                        var chooser: JFileChooser = new JFileChooser();
                                        if (JFileChooser.APPROVE_OPTION == chooser.showOpenDialog(null)) {
                                            var file = chooser.getSelectedFile();
                                            if(file.isFile() and file.canRead()) {
                                                fileName = file.getCanonicalPath();
                                                loadFile();
                                SwingButton {
                                    enabled: bind (currentFrame > 0)
                                    text: "Previous Frame"
                                    action: function() {
                                        currentFrame --;
                                SwingButton {
                                    enabled: bind (currentFrame < nbFrame - 1)
                                    text: "Next Frame"
                                    action: function() {
                                        currentFrame++;
                                SwingLabel {
                                    translateY: 5
                                    text: bind "Frame index: {currentFrame} / {nbFrame}"
                        imageView = ImageView {
                            transforms: [
                                Scale {
                                    x: bind imgScaleX
                                    y: bind imgScaleY
}

Similar Messages

  • How to fix file when it says, "Cannot open file " ". Adobe Indesign does not support the file format, a plug-in that supports the file may be missing, or file may be open in another application." It worked one second, I saved and closed the file, then tri

    How to fix file when it says, "Cannot open file " ". Adobe Indesign does not support the file format, a plug-in that supports the file may be missing, or file may be open in another application." It worked one second, I saved and closed the file, then tried to reopen and now it won't work. I am using Adobe InDesign CS5. It is the only version on my comp. I have tried opening on another comp & copying the file – same error comes up. PLEASE HELP

    First check the version of the document with Jongware's script "Identify.jsx" (ExtendScript/JavaScript).
    You can find it here:
    [Ann] Identify Your InDesign File
    If it is CS 5.5 or above, you need someone to open it in the version the script says and export an IDML representation from that. Another way would be to install a 30days version of CS6 or above (CC) and do it yourself.
    In regards of the script showing a result for InDesign files higher than CS6:
    CS7 = CC v9
    CS8 = CC v10 = CC-2014 or CC2014.1
    Uwe

  • Yesterday i made some purchases in itunestore. the download went well. till the synch of itunes with ipod. some of the downloaded music did noch synchronize. the message was: the ipod does not support the file format (mp4). strange, right?

    Yesterday 20 november I have made some purchases in Ittunestore. The download went well. Till the synch of itunes with ipod. Some of the downloaded music did noch synchronize. The message was: the ipod does not support the file format (mp4). Strange, right? All the rest of downloaded music items has been synchronised without any problems. What may be the problem?

    For music files purchased via the iTunes Store, Apple has used the following file extensions -
    .m4a unprotected AAC format music files
    .m4p protected AAC format music files
    .m4b protected Audio Books
    .m4r unprotected ringtones in AAC format
    As you can see Apple have never used .mp4 for music files via the iTunes Store.
    For videos Apple use .m4v and these are in H.264 format.
    You could try changing the file extension to .m4a, first then see if it plays on your computer and then try re-synching it.

  • HT4101 When does Apple support the SDXC format?

    I just bought the iPad 3 and the camera connection kit. However, it doesn't support the SDXC format. I read a note about this from august 24, 2010, alomost 2 years in the past. And since then...

    i had 64gb sdxc. CCK didn't recognized it.
    so i run CMD in windows 7
    DISKPART
    LIST DISK
    SELECT DISK 2(in my case)
    CLEAN
    CREATE PARTITION PRIMARY SIZE=32000 OFFSET=16384(dont know why, such offset was earlier)
    LIST PARTITION
    SELECT PARTITION 1(in my case)
    FORMAT FS=FAT32 QUICK
    EXIT
    now i have 32 gb SDXC instead of 64g but it's compatible with my Camera Connection Kit.
    if you have sdxc card 32g or less, i think this might help.

  • Does Lion support the PICT format?

    I currently use a first-generation Mac mini with Snow Leopard and would like to upgrade to a second-generation Mac mini with Lion. I have many PICT images on my hard drive that I created with Color It! and am using as textures in Poser 7. Will I still be able to use PICt images in Lion, or will I have to convert them to PNG or JPEG?

    They are supported as far as the OS is concerned. Whether they will be supported by different image software is a separate non-Apple matter. However, a great piece of software for this is Graphic Converter.

  • How does the TIFF format compress images?

    When we choose "File> Save As" to save an image to a TIFF file, a TIFF Options dialogue box appears with 4 image compression options( None, LZW, Zip, Jpeg). What is this for? Does the TIFF format compress images? Are they destructive to the image quality? THANK YOU

    If you select no compression, it will take up too much space, guaranteed.  TIFF lets you pick any compression method supported by your program and the viewing program.  Some are lossy, some are lossless.  Most TIFFs tend to be compressed in LZW or ZIP, both of which are lossless.  You can also choose to compress your TIFF using JPEG compression, which is lossy, but I can't imagine why you would do this instead of simply saving as a JPEG file, which is more likely to be properly opened in browsers than a JPEG-compressed TIFF file.
    And in response to one of the previous posts, not all compression throws away details from your file.  Only lossy compression (e.g., JPEG, or in the music area MP3) throws away data.  The lossless compression techniques simply encode the data in fewer bits if possible.  (One important fact not relevant to the web, where you will use 8-bit-per-channel files:  If your photos are 16-bit-per-channel, don't save in LZW compressed format; they will actually become larger than the uncompressed image.)  For a simplified example, if there is a series of 16 pixels of solid white, a losslessly compressed image will have code that says, in effect, 16 pixels of (255,255,255) using an abbreviated code instead of simply listing (255,255,255) sixteen times.  It builds up a directory of byte combinations and can use just a few bytes to refer to many bytes of image data.  Because the coding and decoding is exact, there is no change in the image data when it's opened.
    JPEG is a lossy compression technique that doesn't actually record pixel values at all.  It uses formulas to specify averages and changes within regions.  In effect, it records the fact that a given group of pixels has values centered on X color, and that the upper left is much pinker and the lower right is much greener than the average.  When you pick the degree of quality for JPEG compression, you tell it how small to make the comparison cells.  As you can imagine, if the image has text, tree branches, or other highly contrasty subject matter, this will cause serious weirdness if the comparison cells aren't very small (i.e., you don't have the quality set to max).

  • I have a Nikon D7100 I have tried to open a raw file but it staes it does not support the format. I am up to date on all downloads.

    I have  Nikon D7100 and shoot in raw. I have tried to open a raw file in elements 10 but it states it does not support the format. I also have a D800 and these open file in elements camera raw. Can anyone help please?

    Hi,
    You need version 7.4 or higher to read raw files from, a D7100. Unfortunately, ACR 7.4 is not compatible with PSE 10.
    You need to either
    - update to a new version of PSE or
    - download the DNG converter - use it to conver your NEF files to DNG files which can then be read by PSE 10.
    DNG  Converter 8.4
    Windows: http://www.adobe.com/support/downloads/detail.jsp?ftpID=5739
    MAC: http://www.adobe.com/support/downloads/detail.jsp?ftpID=5738
    DNG Converter 8.3 (if running on XP or Vista)
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5694
      Good luck
    Brian

  • Hallo, does the lightroom 5 support the raw format from the cam nikon D750?

    Hallo, does the lightroom 5 support the raw format from the cam nikon D750?

    Since LR 5.7, yes:
    http://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html

  • Preview does not support the raw file format of the nikon d300s

    preview does not support the files and snow leopard does not provide icon previews either.
    is there any date when there will be support for these type of files?
    any suggestions on how to open the NEF files with preview in the meantime there is an update?
    regards

    any suggestions on how to open the NEF files with preview in the meantime there is an update?
    Not with Preview, but Nikon Transfer v1.0.1.3005 is so far happy with 10.6.1 and you may see if there is any advantage there. Take the card out of the 300s and use a reader if you have to.
    It usually takes from 3 to 6 months before Apple releases a new/specific Nikon RAW related update, so you are at the beginning of that cycle it would appear...all you can do is wait, sorry.

  • Getting error "Cannot open the file "*****.INDD". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file may be open in another application."

    How to fix this problem
    "Cannot open the file "*****.INDD". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file may be open in another application."

    When I have seen this message it is either when I try to open a document with an older version of Indesign E.g. an indesign 2014 document with Indesign CC.
    The other time I have seen it is to open an Indesign CC document with Indesign 2014 which does not have Mindsuite - a plugin I use. Mindsuite, as yet, has not upgrade the plugin for Indesign 2014 therefore it recognises that a the document was created withe a plugin that the 2014 version does not have installed.
    I believe your problem will be something like that.

  • Network backup disk does not support the required AFP features

    I have a mac mini with two (4T) hard disks each set as target in TimeMachine. Backups have been made on both for some time. This afternoon one of the disks is being rejected as target volume, with the "network backup disk does not support the required AFP features" error.
    The sparse image on the disk that is the actual time machine target shows a modification tim of 13:09, time machine reports the last backup on that volume as made on 13:08. It seems the last successful backup was made at that time. The other TimeMachine target volume on the same min reports a last backup at 15:28
    So why an error now? What has happend in the last hour, or so, to cause the disk to no longer be suitable? Why only on one virtual disk?
    The mac mini runs OS X 10.9.4 (13E28), the disk with the failing backup volume is formatted with Case-Sensitive Journaled HFS+, the still working disk Journaled HFS+.
    This may be related: A couple of month ago  I lost the complete backup on that disk, when time machine conclude that the contents of the target volume was corrupt. At the time I blamed that at a failed backup when I had accessed the mini over ssh using SLINK when traveling. Maybe that conclusion is wrong and this is part of the same problem.
    Any pointers on how to get my second backup disk working again would be much appreciated.
    Eduard de Jong

    The error message has disappeared!
    Earlier this morning the disk has been used as target for a backup by time machine without triggering the error message. A backup 8 hours earlier has also been made to the same sparse image (looking at the folder names).

  • Can anyone tell me what this Time Machine error means? The network backup disk does not support the required AFP features?

    Can anyone tell me what this Time Machine error means? The network backup disk does not support the required AFP features?

    AFP - Apple Filing Protocol
    The Network Attached Storage (NAS) that you are pointing Time Machine at does not have the features needed by Time Machine in order to do its Thing.  Time Machine needs some specific features that are not typically available on generic networked storage devices.
    There are manufactures that support the Mac OS X HFS+ file system formats and implement all the needed AFP protocol packets necessary so that they can be used with Time Machine, but apparently yours does not.
    If you are not using a networked mounted volume for Time Machine, then more information will be needed about your Time Machine setup.

  • Does LabVIEW support Multi Document Format

    Hi
    I had a doubt that does LabVIEW support Multi Document Format like Microsoft Word, execel etc.
    please reply me with some solution if anyone has
    With Regards
    Avni

    Yes, I know very well what MDI is, I just don't know what Multi Document Format is
    Programs like word, excel, etc support reading/writing of files in multiple formats (e.g. *.doc, *.rtf, *.txt, etc. for word or *.xls, *.csv, etc. for excel), so the question could be along these lines. I guess we have to wait for the original poster to come back to clarify.
    LabVIEW Champion . Do more with less code and in less time .

  • I am running InDesign CS5.5 and trying to open an In Design File but getting an error message. " Cannot open the file "PDavidLCover.indd". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file

    I am running InDesign CS5.5 and trying to open an In Design File but getting an error message. " Cannot open the file "PDavidLCover.indd". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file me be open in another application."Please help I really need to get this file open.

    Since you've shown us the folder contents it's a good bet it isn't in use (no lock file). And it doesn't look like the file is mis-named as there doesn't seem to be anything else there that would be the .indd file (but just in case, open it in TextEdit and paste the first few lines here so we can see what the file header says), so the most likely case is the file is damaged. Is that on a removable device of some sort?
    You can try the tool at Repair corrupt InDesign Adobe files on Mac OS X  or send me a link to the file by private message and I'll try the recovery tool I have for Windows.

  • HT3275 Since updating OS to Mountain Lion from leopard, I get the following error message when trying to backup with time machine on external drive.  Could not complete backup to media share.  The network backup disk does not support the required AFP feat

    Since updating OS to Mountain Lion from leopard, I get the following error message when trying to backup with time machine on external drive.  "Could not complete backup to media share.  The network backup disk does not support the required AFP features."  What are AFP features and how do I get Time Machine to backup to my current external backup?

    This means that your NAS does not support the required encryption. Update your NAS to the latest firmware or ditch it and buy a Time Capsule (they are the most reliable when using TM).

Maybe you are looking for

  • Query is allocating too large memory error in OBIEE 11g

    Hi , We have one pivot table(A) in our dashboard displaying , revenue against a Entity Hierarchy (i.e we have 8 levels under the hierarchy) And we have another pivot table (B) displaying revenue against a customer hierarchy (3 levels under it) . Both

  • Print To Go - anything but!

    Gave Print to Go a shot; Installed it on my laptop, entered my credentials, obtained the key from the PlayBook.......it went away and did its thing and.......NOTHING! Despite calling support, the nice Lady must have accidentally hit the kill button -

  • Scratch Disc Questions using Firewire External Drive & Imac

    Hello. I've read through the existing questions regarding scratch disc and Photoshop, yet can't seem to find an answer to my questions. I would greatly appreciate any tips/advice. Here is my setup and situation: I am running an iMac with a 2.16 intel

  • Terrible bug with Rescue & Recovery 4.5

    Hello all, Just a notice to all users, I had a terrible bug with Lenovo Rescue & Recovery. Everything went well, until the restore: I have one SSD for system and one micro sata for data. The system drive had two partitions (created by Lenovo at the o

  • Permission problem that won't die: You have custom access

    After upgrading from Tiger to Leopard I had so many permissions problems that I backed up all my docs, erased my Macbook Pro hard drive (first time since I bought a Mac in 1985 that I have EVER had to do this), and installed a 100% clean Leopard inst