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

renderToImage returns null for offline scene without specified size

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Labels:
    • Environment:

      Product: javafx-2.0beta
      Platform: windows-i586
      Build-Number: 2463
      Build-ID: 2011-07-20_08-14-55

      Description

      Run the attached sample:

              Circle node = new Circle(100, Color.RED);
              Scene scene = SceneBuilder.create().fill(Color.BLUE)
                      .root(StackPaneBuilder.create().children(node).build()).build();
              Object renderToImage = scene.renderToImage(null);

      The result is null. If I add sizes to scene with ".width(100).height(100)", it won't be null.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kprazdnikwse Kirill.Prazdnikov (Inactive)
              Reporter:
              mrkam Alexander Kuznetcov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: