Convet from line points to shape points

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 5:54 UTC
Read the original article Hit count: 321

Filed under:
|
|
|
|

I have an array of points that make up a line. However I need to draw the line with the width of n pixels. How can I transform that points for lines to points for polygon (or a shape) so I can directly draw it on canvas. I'm developing two program at the same time, one is j2me and another is .NET CF. j2me doesn't support drawing lines with width. Please take a look at the picture.

link text

© Stack Overflow or respective owner

Related posts about graphics

Related posts about geometry