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

6
LINES

< > BotCompany Repo | #1032214 // markPointInImageWithAlpha

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

Transpiled version (4005L) is out of date.

1  
// alpha is from 0 to 1
2  
static BufferedImage markPointInImageWithAlpha(BufferedImage img, Pt etc p, Color color, double alpha, int size default 3) {
3  
  if (img != null &&p != null)
4  
    rgbFillRect(img, p.x-size/2, p.y-size/2, size, size, colorWithAlpha(color, alpha));
5  
  ret img;
6  
}

Author comment

Began life as a copy of #1006777

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032214
Snippet name: markPointInImageWithAlpha
Eternal ID of this version: #1032214/2
Text MD5: aecb389e5f0e8943e0f978a4c146c7ca
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-22 23:21:06
Source code size: 285 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 156 / 232
Version history: 1 change(s)
Referenced in: [show references]