Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8128760

GIF image rendered incorrectly

    XMLWordPrintable

Details

    Description

      Compare rendering of an image, http://www.bbc.co.uk/vision/productisation/images/f/accordion_content.gif, in a browser and the program below. ImageView renders a black line at the bottom.

      import javafx.application.Application;
      import javafx.scene.Group;
      import javafx.scene.Scene;
      import javafx.scene.image.Image;
      import javafx.scene.image.ImageView;
      import javafx.stage.Stage;

      public class ImageTest extends Application {

          public static void main(String[] args) {
              launch(ImageTest.class, args);
          }

          @Override public void start(Stage stage) {
              Image img = new Image("http://www.bbc.co.uk/vision/productisation/images/f/accordion_content.gif");
              ImageView view = new ImageView(img);
              Scene sc = new Scene(new Group(view));
              stage.setScene(sc);
              stage.sizeToScene();
              stage.show();
          }
      }

      Attachments

        Issue Links

          Activity

            People

              kprazdnikwse Kirill.Prazdnikov (Inactive)
              peterz Peter Zhelezniakov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: