static RGBImage rgbTurnRight(RGBImage img) { int w = img.w(), h = img.h(); RGBImage r = new RGBImage(h, w); for y to w: for x to h: r.setPixel(x, y, img.getPixel(y, h-1-x)); ret r; }
Began life as a copy of #1006373
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025234 |
Snippet name: | rgbTurnRight - rotate RGBImage 90° clockwise |
Eternal ID of this version: | #1025234/2 |
Text MD5: | 33c22f88fe73b01f343f1c4f1a66f5ba |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-14 17:16:33 |
Source code size: | 200 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 199 / 230 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |