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.

sclass FastRegions_Hi15Image extends AbstractFastRegions<Hi15Image> {
  int getColor(int pos) { ret image.getHi15Pixel_noRangeCheck(pos); }
  
  RGB rgbForRegion(ImageRegion r) {
    ret hi15ToRGB((short) r.firstPixelLogicalColor());
  }
  
  *(Hi15Image img) { super(img); }
  *(BufferedImage img) { this(new Hi15Image(img)); }
}

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: 144 / 227
Version history: 4 change(s)
Referenced in: [show references]