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

8
LINES

< > BotCompany Repo | #1031992 // pixelateImage - downsample, then upsample again

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

Libraryless. Compilation Failed (7390L/44K).

static BufferedImage pixelateImage(
    int tempWidth,
    int tempHeight default max(1, heightForWidth(tempWidth, img)),
    BufferedImage img) {
  int w = img.getWidth(), h = img.getHeight();
  var img2 = scaledBufferedImageFromIntegralImage(tempWidth, tempHeight, IntegralImage(img));
  ret scaleBufferedImagePixelated(img2, w, h);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1031992
Snippet name: pixelateImage - downsample, then upsample again
Eternal ID of this version: #1031992/6
Text MD5: 372a0989b734c7addc19c6ffa149b40f
Transpilation MD5: 142fda38cd76aacbc18cca064edfd2c9
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-07 17:10:33
Source code size: 343 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 160 / 234
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)