Libraryless. Click here for Pure Java version (34L/1K).
import java.awt.geom.AffineTransform; svoid translateGraphics(Graphics2D g, double x, double y) { AffineTransform at = g.getTransform(); at.translate(x, y); g.setTransform(at); }
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: | 159 / 223 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1031987 - rotateGraphicsClockwise_radians #1035955 - zoomGraphics |