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

7
LINES

< > BotCompany Repo | #1035955 // zoomGraphics

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (39L) is out of date.

1  
import java.awt.geom.AffineTransform;
2  
3  
svoid zoomGraphics(Graphics2D g, double scaleX, double scaleY default scaleX) {
4  
  AffineTransform at = g.getTransform();
5  
  at.scale(scaleX, scaleY);
6  
  g.setTransform(at);
7  
}

Author comment

Began life as a copy of #1031986

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1035955
Snippet name: zoomGraphics
Eternal ID of this version: #1035955/3
Text MD5: c55d33a124bb9d814e939975f2dd5667
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-17 22:15:53
Source code size: 217 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 124 / 166
Version history: 2 change(s)
Referenced in: [show references]