-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saving to PNG broken in anything but the default renderer #80
Comments
Created by: sampottinger
|
Created by: sampottinger Cross-posting from #81: Just a quick update here... It looks like even in JavaFX and JOGL, BufferedImage is still the canonical solution. There might not be a way to avoid using it. |
Created by: benfry Ah, this is something we need to handle differently in the renderers themselves… i.e. if they're using AWT objects (i.e. JOGL and JavaFX also have their own more efficient ways of handling image objects, our use of AWT in those was just a crutch to get things working quickly; this would provide a pathway for others to build out that improved image support. |
Created by: sampottinger Thanks @benfry. I'm sorry could you say more about how JavaFX / JOGL would handle this? Maybe just taking JavaFX first... looking around online, it's not clear how to do this in JavaFX without using the AWT Image classes. I may be missing something obvious though. |
Created by: sampottinger Also, if you did want that for FX2D, see #98 |
Created by: benfry
Nope, not missing anything, sorry for the confusion… For now it's necessary to use However, this way, in the future, when someone wants to/has time to excise AWT from JOGL or JavaFX, that can be done as an independent thing. It's also then clearer in the JFX/GL code bases where AWT is being used, rather than introducing a surprise when a user calls AWT has some weird performance bottlenecks that are avoided by more modern approaches for JavaFX, JOGL (i.e. NEWT or whatever it's called now), and LWJGL. So in an ideal world, those renderers would never touch/initalize AWT. In the real world, I've not had time to maintain all those renderers independently, so we're still relying on AWT for some things around the edges (like image i/o). In a similar fashion, For now, the band-aid of using |
Created by: benfry Trying to gather all this in-progress discussion: https://github.com/processing/processing4/wiki/Exorcising-AWT |
Created by: github-actions[bot] This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Created by: sampottinger
It looks like the
tiff
extension is always appended even if the requested filename ends in.png
when usingJAVA2D
. Looks related to the recent refactor on AWT related code.The text was updated successfully, but these errors were encountered: