Libraryless. Click here for Pure Java version (34L/1K).
1 | import java.awt.geom.AffineTransform; |
2 | |
3 | svoid translateGraphics(Graphics2D g, double x, double y) {
|
4 | AffineTransform at = g.getTransform(); |
5 | at.translate(x, y); |
6 | g.setTransform(at); |
7 | } |
Began life as a copy of #1019191
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
| Snippet ID: | #1031986 |
| Snippet name: | translateGraphics |
| Eternal ID of this version: | #1031986/1 |
| Text MD5: | 9da15a39807ceee81fdc3ff470bc9f52 |
| Transpilation MD5: | 89e3a5b4d35b403a00cca8cfdce5a032 |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-08-06 07:07:25 |
| Source code size: | 191 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 372 / 468 |
| Referenced in: | [show references] |