static void fillTetragon(BufferedImage image, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, Color color) { Graphics2D g = image.createGraphics(); g.setColor(color); g.fillPolygon(intArray(x1, x2, x3, x4), intArray(y1, y2, y3, y4), 4); g.dispose(); }
Began life as a copy of #1006920
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006921 |
| Snippet name: | fillTetragon - works on BufferedImage |
| Eternal ID of this version: | #1006921/3 |
| Text MD5: | 828aff5ed70409414360d568078398eb |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-02-17 11:33:35 |
| Source code size: | 280 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 698 / 730 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1006925 - drawRoundEdgeLine #1014970 - fillPolygon |