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

10
LINES

< > BotCompany Repo | #1010053 // Downsample images [OK]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (4259L/29K).

!7

p {
  BufferedImage img = loadImage2(#1003742);
  showPackedTabs(
    "2", zoomedImageSurface(resizeImage(img, iround(img.getWidth()/2.0)), 4.0),
    "4", zoomedImageSurface(resizeImage(img, iround(img.getWidth()/4.0)), 8.0),
    "8", zoomedImageSurface(resizeImage(img, iround(img.getWidth()/8.0)), 16.0)
  );
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1010053
Snippet name: Downsample images [OK]
Eternal ID of this version: #1010053/8
Text MD5: 98b4dd6b4290ea112b853de5d3a76a58
Transpilation MD5: 6de04f5cf318bb1e66ecf742e9c6cc7d
Author: stefan
Category: javax / imaging / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-01 21:08:35
Source code size: 325 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 426 / 944
Version history: 7 change(s)
Referenced in: [show references]