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.

static BufferedImage scaleImage_nearestNeighbor(BufferedImage before, double scaleX, double scaleY default scaleX) {
  ret scaleImageWithOp(before, scaleX, scaleY, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
}

static BufferedImage scaleImage_nearestNeighbor(double scale, BufferedImage before) {
  ret scaleImage_nearestNeighbor(before, scale);
}

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: 129 / 187
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1033314 - scaleImage_bicubic - use Java's "bicubic" scaling