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

5
LINES

< > BotCompany Repo | #1006331 // showScaledImageWithSelections

JavaX fragment (include)

static ImageSurface showScaledImageWithSelections(RGBImage img, L<Rect> rects) {
  BufferedImage thumb = shrinkScreenshot(img.getBufferedImage());
  double factor = thumb.getWidth()/(double) img.getWidth();
  ret showImageWithSelections(thumb, scaleRects(rects, factor));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006331
Snippet name: showScaledImageWithSelections
Eternal ID of this version: #1006331/1
Text MD5: fb2d6755935f7a668e7bd3baf1746539
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-28 21:51:35
Source code size: 279 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 562 / 568
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)