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

7
LINES

< > BotCompany Repo | #1034530 // hasAlpha - synonym of hasTransparency

JavaX fragment (include)

sbool hasAlpha(BufferedImage img) {
  ret hasTransparency(img);
}

sbool hasAlpha(Color color) {
  ret color.getAlpha() != 0xFF;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034530
Snippet name: hasAlpha - synonym of hasTransparency
Eternal ID of this version: #1034530/2
Text MD5: 0d7f621014e46abeb75cc7b13bc39498
Author: someone
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-09-05 03:17:02
Source code size: 136 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 175 / 197
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)