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

7
LINES

< > BotCompany Repo | #1035899 // withFullAlpha

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

Transpiled version (44L) is out of date.

1  
static int withFullAlpha(int rgb) {
2  
  ret rgb | fullAlphaMask();
3  
}
4  
5  
static Color withFullAlpha(Color color) {
6  
  ret hasAlpha(color) ? new Color(color.getRGB()) : color;
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1035899
Snippet name: withFullAlpha
Eternal ID of this version: #1035899/6
Text MD5: f9dc735e62377af97902a40d0b41d8e2
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-09-05 03:17:13
Source code size: 176 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 148 / 226
Version history: 5 change(s)
Referenced in: [show references]