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

ImageView get blur when stage resize.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 7u40
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
      None
    • Environment:

      windows 7 64 bit
      jdk 1.7.0 u 45

      Description

      I place ImageView inside BorderPane. When Stage is show a image was sharp. but then i resize stage a image was blur (some size blue,some size not blur)

      code is simple as below

      public class ImageBrowser extends Application {

          @Override
          public void start(Stage primaryStage) {
              StackPane root = new StackPane();
              BorderPane borderPane = new BorderPane();
              root.getChildren().add(borderPane);
              ImageView imageView = new ImageView(getClass().getResource("test.png").toExternalForm());
              imageView.setPreserveRatio(true);
              borderPane.setCenter(imageView);
              Scene scene = new Scene(root, 300, 250);

              primaryStage.setTitle("Hello World!");
              primaryStage.setScene(scene);
              primaryStage.show();
          }

          public static void main(String[] args) {
              launch(args);
          }
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                psafrata Pavel Ĺ afrata
                Reporter:
                psuwanpecjfx Pramoth Suwanpech (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: