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

13
LINES

< > BotCompany Repo | #1035741 // posterizeBufferedImage

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

Libraryless. Click here for Pure Java version (13720L/80K).

1  
static BufferedImage posterizeBufferedImage(int brightnessLevels, BufferedImage etc img) {
2  
  PosterizeBufferedImage x = new(brightnessLevels, img);
3  
  ret x!;
4  
}
5  
6  
static BufferedImage posterizeBufferedImage(IPosterizer posterizer, BufferedImage etc img) {
7  
  PosterizeBufferedImage x = new(posterizer, img);
8  
  ret x!;
9  
}
10  
11  
static BufferedImage posterizeBufferedImage(BufferedImage etc img, IPosterizer posterizer) {
12  
  ret posterizeBufferedImage(posterizer, img);
13  
}

Author comment

Began life as a copy of #1033679

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035741
Snippet name: posterizeBufferedImage
Eternal ID of this version: #1035741/3
Text MD5: 01a781376fba7fb295bd53fe2990fc75
Transpilation MD5: 41edc0a645a469f3c1b2034ae02ac464
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-07-17 22:21:28
Source code size: 473 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 149 / 228
Version history: 2 change(s)
Referenced in: [show references]