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

5
LINES

< > BotCompany Repo | #1033434 // rgbToGrayUsingGrayFilter - supposedly the fastest method. results are strange

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

Transpiled version (37L) is out of date.

1  
static Image rgbToGrayUsingGrayFilter(Image img) {
2  
  GrayFilter filter = new(true, 50);  
3  
  FilteredImageSource imageSource = new(img.getSource(), filter);  
4  
  ret awtToolkit().createImage(imageSource);  
5  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033434
Snippet name: rgbToGrayUsingGrayFilter - supposedly the fastest method. results are strange
Eternal ID of this version: #1033434/4
Text MD5: 6ebcffb228eb0465220e55f9b376a6dd
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-27 14:35:34
Source code size: 210 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 77 / 123
Version history: 3 change(s)
Referenced in: [show references]