1 | static RGBImage rgbTurnRight(RGBImage img) {
|
2 | int w = img.w(), h = img.h(); |
3 | RGBImage r = new RGBImage(h, w); |
4 | for y to w: for x to h: |
5 | r.setPixel(x, y, img.getPixel(y, h-1-x)); |
6 | ret r; |
7 | } |
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: | 451 / 462 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |