Libraryless. Click here for Pure Java version (4948L/31K).
1 | static BufferedImage scaleClipboardImage(int width) { |
2 | BufferedImage img = imageFromClipboard(); |
3 | if (img == null) null; |
4 | ret copyImageToClipboard(scaleToWidth(width, img)); |
5 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030511 |
Snippet name: | scaleClipboardImage |
Eternal ID of this version: | #1030511/1 |
Text MD5: | 2d6585bc916c064b6409a037800be22b |
Transpilation MD5: | b7e42cc9824be11cdb6dc6ac4dfe21e0 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-01-04 00:01:45 |
Source code size: | 182 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 199 / 280 |
Referenced in: | [show references] |