以下編號是一個非常簡單的曲線的路徑點從Adobe公司的InDesign:如何通過InDesign/Illustrator路徑點繪製曲線?
pathPoint0 = app.selection[0].paths[0].pathPoints[0] // PointType: SMOOTH
pathPoint1 = app.selection[0].paths[0].pathPoints[1] // PointType: PLAIN
pathPoint0.leftDirection : {x=87.32570997045623, y=30.81406367905744}
pathPoint0.anchor : {x=67.69218412206757, y=134.53280706833522}
pathPoint0.rightDirection : {x=48.0586582736789, y=238.25155045761298}
pathPoint1.anchor : {117.05865827421783, 143.2515504576449}
曲線包含2個路徑點,一個平滑點和一個普通的點。
InDesign中簡單的曲線:
http://doxy.no-ip.org/idcurve.png
我想通過這個代碼來繪製這條曲線:
MoveToEx(hDC, 67, 134, NULL);
POINT points[] = {{87, 30}, {48, 238}, {117, 143}};
PolyBezierTo(hDC, points, 3);
但我不能畫同樣的曲線,我繪製的曲線是:
http://doxy.no-ip.org/mycurve.png
我的錯誤在哪裏?是否需要轉換?
謝謝。
我不明白。 –
@mhtaqia:我懷疑他在評論低分辨率和(尤其是)缺乏反鋸齒。 –