Home > Software engineering >  Problems about curve in GDI drawing function
Problems about curve in GDI drawing function

Time:10-27

GDI + drawing curve has several functions, one is GdipDrawCurve, one is GdipDrawClosedCurve, the latter is to draw a curve, the tension of the default value is 0.5, but after drawing found that there is a problem, after you have closed curve drawing, the starting point and end point between the curve of the basic equivalent to a straight line, the function algorithm itself? I use the cubic spline function and Bessel function to similar to directly call the API function,

CodePudding user response:

Is that you end the distance of two points is bigger than the other,
Don't think you're given a square four vertices, closed curve is symmetric.

CodePudding user response:

Upstairs said, I know, but look at the picture of the top of the closed curve, the two points is consists of 15, 17 of the closed curve and the following are particularly sharp corners, when do with GdipDrawClosedCurve curve smoothing that is to say, if only consider to spline smoothing of the previous point, without regard to the back of the points, so the final connection into a closed curve, the curve and the curve connection time is particularly sharp Angle, if so, is there any other better function makes the whole root curve more smooth?

CodePudding user response:

It has nothing to do and end point,
Upper right contains the number 13 closed curve, for example, is probably (140100) - & gt; (50, 0) - & gt; (0 40) - & gt; (50, 75) - & gt; Four point, end point, where no matter choose do not impact curve,

CodePudding user response:

http://download.csdn.net/detail/veron_04/4814790
  •  Tags:  
  • API
  • Related