1 | import java.awt.geom.*; |
2 | |
3 | static AutoCloseable tempGraphicsTransform(final Graphics2D g) {
|
4 | final AffineTransform t = g.getTransform(); |
5 | ret new AutoCloseable {
|
6 | public void close() {
|
7 | g.setTransform(t); |
8 | } |
9 | }; |
10 | } |
Began life as a copy of #1014431
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1015417 |
| Snippet name: | tempGraphicsTransform |
| Eternal ID of this version: | #1015417/4 |
| Text MD5: | 0d98df580f3f95d8b477f0a22e1d5a6c |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-01-05 06:25:28 |
| Source code size: | 234 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 677 / 718 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |