Convert an array of points to a smooth line using GDIplus
$250-750 USD
Cerrado
Publicado hace más de 12 años
$250-750 USD
Pagado a la entrega
Write a function that takes a array of points, pen color, and thickness to draw a smooth line represented by the array of points. Based on my research this may require some of curve fitting to the line resulting in a set go polylines and curves. GDIplus does a decent job for 1-3 pixel width lines. using gdiplus drawlines on thicker lines results in pointed edges where the line turns sharply. Changing the drawing to use curves may solve this issue.
API
DrawPolyLine( CPoint * pts, long noOfpoints, ARGB line color, long lineWidth)
Test APP:
Write a simple scribble app that sets a ARGB color, width and collects a set of points from the onMouseMove. On mouse up call DrawPolyLine to smooth out the polyline. Draw scipt type text with the mouse at a thickness of 20 pixels to test. Also test with various alpha levels.
Mike