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

3
LINES

< > BotCompany Repo | #1035454 // averageBrightnessImage - image scaled down to 1x1 pixel

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

Libraryless. Click here for Pure Java version (10613L/60K).

static BufferedImage averageBrightnessImage(BufferedImage img) {
  ret newBufferedImage(1, 1, blendColor(Color.black, Color.white, new BWImage(img).averageBrightness()));
}

Author comment

Began life as a copy of #1019110

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035454
Snippet name: averageBrightnessImage - image scaled down to 1x1 pixel
Eternal ID of this version: #1035454/4
Text MD5: 8b2a325af9d250b19ef744750de0253f
Transpilation MD5: 38d876929ec25e22af8e1f8d09f281d8
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-14 03:08:31
Source code size: 174 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 6 / 15
Version history: 3 change(s)
Referenced in: [show references]