Libraryless. Click here for Pure Java version (14826L/87K).
1 | sclass FastRegions_RGBImage extends AbstractFastRegions<RGBImage> { |
2 | int getColor(int pos) { ret image.getIntPixel_noRangeCheck(pos); } |
3 | |
4 | RGB rgbForRegion(ImageRegion r) { |
5 | ret RGB(r.firstPixelLogicalColor()); |
6 | } |
7 | |
8 | *(RGBImage img) { super(img); } |
9 | } |
Began life as a copy of #1033761
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034523 |
Snippet name: | FastRegions_RGBImage |
Eternal ID of this version: | #1034523/3 |
Text MD5: | ddb5b381add13adda986d70c5a4d248a |
Transpilation MD5: | b35dd1b14190c866dac56da050de2063 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-08-27 01:28:38 |
Source code size: | 267 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 146 / 254 |
Version history: | 2 change(s) |
Referenced in: | [show references] |