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

static BufferedImage posterizeBufferedImage(int brightnessLevels, BufferedImage etc img) {
  PosterizeBufferedImage x = new(brightnessLevels, img);
  ret x!;
}

static BufferedImage posterizeBufferedImage(IPosterizer posterizer, BufferedImage etc img) {
  PosterizeBufferedImage x = new(posterizer, img);
  ret x!;
}

static BufferedImage posterizeBufferedImage(BufferedImage etc img, IPosterizer posterizer) {
  ret posterizeBufferedImage(posterizer, img);
}

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: 148 / 225
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1035877 - posterizeBufferedImageToHi15