1 | static void fillTetragon(BufferedImage image, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, Color color) { |
2 | Graphics2D g = image.createGraphics(); |
3 | g.setColor(color); |
4 | g.fillPolygon(intArray(x1, x2, x3, x4), intArray(y1, y2, y3, y4), 4); |
5 | g.dispose(); |
6 | } |
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: | 489 / 508 |
Version history: | 2 change(s) |
Referenced in: | [show references] |