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

5
LINES

< > BotCompany Repo | #1035924 // rotate180 - rotate image 180° (OK)

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

Transpiled version (9499L) is out of date.

static BufferedImage rotate180(BufferedImage img) {
  int[] pixels = imageToPixels(img);
  int[] pixels2 = reverseIntArray(pixels);
  ret bufferedImage(img.getWidth(), img.getHeight(), pixels2);
}

Author comment

Began life as a copy of #1023037

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1035924
Snippet name: rotate180 - rotate image 180° (OK)
Eternal ID of this version: #1035924/4
Text MD5: b85da484657535e85120e1ed37b9a981
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-14 19:13:59
Source code size: 200 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 137 / 187
Version history: 3 change(s)
Referenced in: [show references]