Generate a polygon from line.
Posted
by VOX
on Stack Overflow
See other posts from Stack Overflow
or by VOX
Published on 2010-05-13T05:46:29Z
Indexed on
2010/05/13
7:34 UTC
Read the original article
Hit count: 199
I want to draw a line with thickness in j2me. This can easily be achieved in desktop java by setting Pen width as thickness value. However in j2me, Pen class does not support width. My idea is to generate a polygon from the line I have, that resembles the line with thickness i want to draw. In picture, on the left is what I have, a line with points. On the right is what I want, a polygon that when filled, a line with thickness. Could anyone know how to generate a polygon from line?
© Stack Overflow or respective owner