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

7
LINES

< > BotCompany Repo | #1033313 // scaleImage_nearestNeighbor - use Java's "nearest neighbor" scaling

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

Transpiled version (3875L) is out of date.

1  
static BufferedImage scaleImage_nearestNeighbor(BufferedImage before, double scaleX, double scaleY default scaleX) {
2  
  ret scaleImageWithOp(before, scaleX, scaleY, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
3  
}
4  
5  
static BufferedImage scaleImage_nearestNeighbor(double scale, BufferedImage before) {
6  
  ret scaleImage_nearestNeighbor(before, scale);
7  
}

Author comment

Began life as a copy of #1033312

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1033313
Snippet name: scaleImage_nearestNeighbor - use Java's "nearest neighbor" scaling
Eternal ID of this version: #1033313/5
Text MD5: 20baa8cb18c1a8bbeacb06504b4e2e91
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-22 21:29:24
Source code size: 351 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 128 / 187
Version history: 4 change(s)
Referenced in: [show references]