static ImageSurface quickShowZoomedImage_is; static ImageSurface quickShowZoomedImage(final RGBImage image) { ret quickShowZoomedImage(image, 2.0); } ifclass BWImage static ImageSurface quickShowZoomedImage(final BWImage image) { ret quickShowZoomedImage(image.getBufferedImage()); } endif static ImageSurface quickShowZoomedImage(final RGBImage image, final double zoom) { ret quickShowZoomedImage(image.getBufferedImage(), zoom); } static ImageSurface quickShowZoomedImage(final BufferedImage image) { ret quickShowZoomedImage(image, 2.0); } static ImageSurface quickShowZoomedImage(S title, final BufferedImage image, final double zoom) { ImageSurface is = quickShowZoomedImage(image, zoom); setFrameTitle(is, title); ret is; } static ImageSurface quickShowZoomedImage(final BufferedImage image, final double zoom) { ret (ImageSurface) swingAndWait(func { quickShowZoomedImage_is = showImage(image, quickShowZoomedImage_is); showFrame(getFrame(quickShowZoomedImage_is)); if (quickShowZoomedImage_is.zoomX != zoom || quickShowZoomedImage_is.zoomY != zoom) { quickShowZoomedImage_is.setZoom(zoom); packFrameInTopRightCorner(quickShowZoomedImage_is); } ret quickShowZoomedImage_is; }); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005387 |
Snippet name: | quickShowZoomedImage - show an image in always the same frame, zoomed 2.0 |
Eternal ID of this version: | #1005387/5 |
Text MD5: | b67583ff075f605f3fae46ebd3582b15 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-13 18:42:35 |
Source code size: | 1279 bytes / 37 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 704 / 752 |
Version history: | 4 change(s) |
Referenced in: | [show references] |