Giter Site home page Giter Site logo

Comments (4)

ennerf avatar ennerf commented on June 18, 2024 1

You can create SnapshotParameters that scale the node to a higher resolution. Here is some code I'm using:

    public static Image snapshot(Node node, double pixelScale) {
        SnapshotParameters snapParams = new SnapshotParameters();
        Transform snapshotScale = Transform.scale(pixelScale, pixelScale);
        snapParams.setTransform(snapshotScale);
        if (Platform.isSupported(ConditionalFeature.SCENE3D)) {
            snapParams.setDepthBuffer(true);
        }
        return node.snapshot(snapParams, null);
    }

from chart-fx.

wirew0rm avatar wirew0rm commented on June 18, 2024

possible duplicate of #410
This should hopefully be resolved by #579 and #592, which I'm in the process of merging. This should be merged at latest tomorrow and be released at latest next week.
If you can't wait for that, there are some workarounds in the first issue that might help.

from chart-fx.

itsmaxymoo avatar itsmaxymoo commented on June 18, 2024

Sadly the workarounds mentioned in #410 do not work. I have found a workaround that works although it is quite janky; to momentarily create and display a stage so that the graphs can properly adjust, and then closing the temporary stage.

from chart-fx.

wirew0rm avatar wirew0rm commented on June 18, 2024

Glad you found a workaround that is working for you and thanks for sharing 👍

Since 11.3.0 with the new layout code is now released which should solve these kind of problems at the root it would be interesting to confirm that the problem is gone now.

As this errors are on the old release and the relevant parts of the code have been fundamentally changed I'll close this issue, feel free to reopen if the issue persists in the 11.3.0 release (which I think it shouldn't).

from chart-fx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.