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

8
LINES

< > BotCompany Repo | #1018875 // overlaySelectionsOnImageSurface

JavaX fragment (include)

svoid overlaySelectionsOnImageSurface(final ImageSurface is, final L<Rect> rects) {
  if (is == null) ret;
  is.overlay = voidfunc(Graphics2D g) {
    for (Rect r : rects)
      is.drawSelectionRect(g, r.getRectangle(), Color.blue, Color.white);
  };
  is.repaint();
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018875
Snippet name: overlaySelectionsOnImageSurface
Eternal ID of this version: #1018875/2
Text MD5: 1d5b19dc6514e08cf128f659f7043ac3
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-14 22:34:17
Source code size: 275 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 336 / 391
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1024315 - overlayRecognitionGridOnImageSurface