import java.awt.geom.*; static void drawRoundEdgeCurve(BufferedImage image, int x1, int y1, int x2, int y2, int x3, int y3, Color color, float width) { Graphics2D g = imageGraphics(image); g.setColor(color); g.setStroke(new BasicStroke(width, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)); g.draw(new QuadCurve2D.Float(x1, y1, x2, y2, x3, y3)); g.dispose(); } static void drawRoundEdgeCurve(BufferedImage image, Pt a, Pt b, Pt c, Color color, float width) { drawRoundEdgeCurve(image, a.x, a.y, b.x, b.y, c.x, c.y, color, width); }
Began life as a copy of #1006925
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: | #1006961 |
Snippet name: | drawRoundEdgeCurve - works on BufferedImage |
Eternal ID of this version: | #1006961/4 |
Text MD5: | 73b88e79b1091daa388f75a0d506edcf |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-02-21 11:19:24 |
Source code size: | 558 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 484 / 506 |
Version history: | 3 change(s) |
Referenced in: | [show references] |