Convert an array of points to a smooth line using GDIplus
$250-750 USD
クローズ
投稿日: 12年以上前
$250-750 USD
完了時にお支払い
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