Libraryless. Click here for Pure Java version (5507L/30K).
static BufferedImage newImage(int w, int h) { ret whiteImage(w, h); } static BufferedImage newImage(int w, int h default w, Color color) { ret bufferedImage(w, h, color); } static BufferedImage newImage(int size) { ret whiteImage(size); } static BufferedImage newImage(Pt size) { ret whiteImage(size.x, size.y); } static BufferedImage newImage(WidthAndHeight size) { ret whiteImage(size.w(), size.h()); } static BufferedImage newImage(Dimension size) { ret whiteImage(size.width, size.height); }
download show line numbers debug dex old transpilations
Travelled to 5 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031375 |
Snippet name: | newImage - synonym of whiteImage |
Eternal ID of this version: | #1031375/8 |
Text MD5: | 50ec09ad88abefd13d9f43868d563085 |
Transpilation MD5: | f5ff1903c94cf45fe36da9394cf7047d |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-07 18:25:49 |
Source code size: | 538 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 290 / 399 |
Version history: | 7 change(s) |
Referenced in: | [show references] |