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).

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

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: 159 / 233
Version history: 5 change(s)
Referenced in: [show references]