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

7
LINES

< > BotCompany Repo | #1033436 // rgbToGrayUsingImageTypeAndDrawImage

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

Transpiled version (4682L) is out of date.

static BufferedImage rgbToGrayUsingImageTypeAndDrawImage(BufferedImage img) {
  if (img == null) null;
  int w = img.getWidth(), h = img.getHeight();
  BufferedImage out = newGrayBufferedImage(w, h);
  drawImage(out, img);
  ret out;
}

Author comment

Began life as a copy of #1033434

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033436
Snippet name: rgbToGrayUsingImageTypeAndDrawImage
Eternal ID of this version: #1033436/3
Text MD5: 9155205d0e2e7fd0122ca172a0f22f52
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:37:11
Source code size: 241 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 149 / 208
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)