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

10
LINES

< > BotCompany Repo | #1035610 // FastRegions_Hi15Image

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

Transpiled version (13955L) is out of date.

1  
sclass FastRegions_Hi15Image extends AbstractFastRegions<Hi15Image> {
2  
  int getColor(int pos) { ret image.getHi15Pixel_noRangeCheck(pos); }
3  
  
4  
  RGB rgbForRegion(ImageRegion r) {
5  
    ret hi15ToRGB((short) r.firstPixelLogicalColor());
6  
  }
7  
  
8  
  *(Hi15Image img) { super(img); }
9  
  *(BufferedImage img) { this(new Hi15Image(img)); }
10  
}

Author comment

Began life as a copy of #1033761

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035610
Snippet name: FastRegions_Hi15Image
Eternal ID of this version: #1035610/5
Text MD5: 7a03bd892c19bb10a55086f2ae7f788c
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-08 16:56:15
Source code size: 339 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 145 / 229
Version history: 4 change(s)
Referenced in: [show references]