This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-26
Channels
- # announcements (1)
- # babashka (106)
- # beginners (11)
- # biff (7)
- # calva (16)
- # clj-kondo (40)
- # clj-on-windows (5)
- # clj-yaml (10)
- # clojars (4)
- # clojure (37)
- # clojure-austin (22)
- # clojure-australia (1)
- # clojure-europe (40)
- # clojure-nl (1)
- # clojure-norway (10)
- # clojure-spec (6)
- # clojure-uk (6)
- # clojurescript (13)
- # conjure (11)
- # cursive (14)
- # datalevin (8)
- # datascript (5)
- # emacs (39)
- # events (1)
- # fulcro (55)
- # gratitude (4)
- # holy-lambda (2)
- # humbleui (9)
- # instaparse (1)
- # lsp (3)
- # malli (12)
- # meander (2)
- # membrane (7)
- # nbb (1)
- # off-topic (16)
- # pathom (9)
- # releases (3)
- # sci (14)
- # shadow-cljs (25)
Can I save a Humbleui window, or sub-rect as a bitmap/png programmatically?
I see there there might be something close to ..
(-> app event surface canvas .saveScreenshot)
Thanks. And you apply that to any element, or to the “window”?
If you start from window, well, take a look at this example https://github.com/HumbleUI/Skija/blob/ad8c71118d2758cbd8fa1b4509c6bb228257ba05/examples/bitmap/src/RenderToBitmap.java
One option might be to create surface in memory, take canvas from it and the render app on that surface instead of one allocated by JWM
Ok will try it out, thanks!