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

6
LINES

< > BotCompany Repo | #1035586 // hi15ToRGBInt_dirty

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

Libraryless. Click here for Pure Java version (37L/1K).

static int hi15ToRGBInt_dirty(short hi15) {
  int r = hi15 >> 10;
  int g = (hi15 >> 5) & 0x1F;
  int b = hi15 & 0x1F;
  ret (r << 19) | (g << 11) | (b << 3);
}

Author comment

Began life as a copy of #1005377

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1035586
Snippet name: hi15ToRGBInt_dirty
Eternal ID of this version: #1035586/3
Text MD5: 2a2c786536e81c0560dc9fb6f9bc4d84
Transpilation MD5: 21e655d728acfe10e5d597ad728a67be
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-06-23 23:28:04
Source code size: 167 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 74 / 93
Version history: 2 change(s)
Referenced in: [show references]