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.

static int withFullAlpha(int rgb) {
  ret rgb | fullAlphaMask();
}

static Color withFullAlpha(Color color) {
  ret hasAlpha(color) ? new Color(color.getRGB()) : color;
}

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: 72 / 123
Version history: 5 change(s)
Referenced in: [show references]