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

15
LINES

< > BotCompany Repo | #1023048 // showImagePixelatedZoomed

JavaX fragment (include)

please include function showImage.

static ImageSurface showImagePixelatedZoomed(double zoom, MakesBufferedImage img) {
  ret showImagePixelatedZoomed(zoom, img.getBufferedImage());
}

static ImageSurface showImagePixelatedZoomed(double zoom, BufferedImage img) {
  ImageSurface is = new(img);
  imageSurface_pixelated(is);
  is.setZoom(zoom);
  JFrame frame = showPackedFrame(jscroll(is));
  moveToTopRightCorner(frame);
  frameIcon(frame, showImage_defaultIcon);
  ret is;
}

Author comment

Began life as a copy of #1019593

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1023048
Snippet name: showImagePixelatedZoomed
Eternal ID of this version: #1023048/2
Text MD5: 047687ef4827492fbddb9cb3df1fa025
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-29 14:07:58
Source code size: 490 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 292 / 336
Version history: 1 change(s)
Referenced in: [show references]