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

10
LINES

< > BotCompany Repo | #1003737 - scaleImage

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

Libraryless. Click here for Pure Java version (3868L/22K).

import java.awt.geom.AffineTransform;

// uses bilinear interpolation
static BufferedImage scaleImage(BufferedImage before, double scaleX, double scaleY default scaleX) {
    ret scaleImageWithOp(before, scaleX, scaleY, AffineTransformOp.TYPE_BILINEAR);
}

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

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003737
Snippet name: scaleImage
Eternal ID of this version: #1003737/4
Text MD5: d8ad3e60cfda16c355f8f22ab3f82c18
Transpilation MD5: 80ac1aa3aa98e73e3b27cb21e6f9afaf
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 20:57:23
Source code size: 370 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 471 / 468
Version history: 3 change(s)
Referenced in: [show references]