renderToImage returns null for offline scene without specified size

XMLWordPrintable

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

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

      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.

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

              Created:
              Updated:
              Resolved:
              Imported: