Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1015417 // tempGraphicsTransform

JavaX fragment (include)

import java.awt.geom.*;

static AutoCloseable tempGraphicsTransform(final Graphics2D g) {
  final AffineTransform t = g.getTransform();
  ret new AutoCloseable {
    public void close() {
      g.setTransform(t);
    }
  };
}

Author comment

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: 382 / 414
Version history: 3 change(s)
Referenced in: [show references]