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

25
LINES

< > BotCompany Repo | #1033753 // pixelatedZoomedImageSurface

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

Transpiled version (16953L) is out of date.

1  
// auto-zoom
2  
static ImageSurface pixelatedZoomedImageSurface() {
3  
  ret pixelatedImageSurface().setAutoZoomToDisplay(true);
4  
}
5  
6  
// auto-zoom
7  
static ImageSurface pixelatedZoomedImageSurface(BufferedImage etc img) {
8  
  var is = pixelatedZoomedImageSurface();
9  
  is.setImage(img);
10  
  ret is;
11  
}
12  
13  
// fixed zoom
14  
static ImageSurface pixelatedZoomedImageSurface(double zoom, BufferedImage etc img) {
15  
  ret pixelatedImageSurface(img).setZoom(zoom);
16  
}
17  
18  
static ImageSurface pixelatedZoomedImageSurface(BufferedImage etc img, double zoom) {
19  
  ret pixelatedZoomedImageSurface(zoom, img);
20  
}
21  
22  
// fixed zoom
23  
static ImageSurface pixelatedZoomedImageSurface(double zoom) {
24  
  ret pixelatedImageSurface().setZoom(zoom);
25  
}

Author comment

Began life as a copy of #1033684

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033753
Snippet name: pixelatedZoomedImageSurface
Eternal ID of this version: #1033753/8
Text MD5: 365545ec14a5f5b12dfd9f8b7691e3ce
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-01 03:50:30
Source code size: 720 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 164 / 290
Version history: 7 change(s)
Referenced in: [show references]