lib 1003956 // TinyBrain import prophecy.common.image.BWImage; import prophecy.common.image.Overlay; import prophecy.common.image.ImageSurface; static void tbShowImageAndRects(BWImage img, final L<Rectangle> rects) { ImageSurface is = new ImageSurface(img); Overlay overlay = new Overlay { public void paint(ImageSurface imageSurface, Graphics2D g) { for (Rectangle r : unnull(rects)) imageSurface.drawSelectionRect(g, r, Color.blue, Color.white); } }; is.setOverlay(overlay); showFrame(new JScrollPane(is)); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004064 |
Snippet name: | tbShowImageAndRects [OLD] |
Eternal ID of this version: | #1004064/2 |
Text MD5: | a90a91ea2f06621736c4725fc4d16635 |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-02-13 16:06:29 |
Source code size: | 560 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 451 / 442 |
Version history: | 1 change(s) |
Referenced in: | [show references] |