You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library is fantastic, thank you for that. I have a little problem with the ClosePath - I can't specify, whether the path should be opened or closed (as it is possible using D2D1_FIGURE_END in D2D). It's impossible to draw bezier cubic curves like this (the first point is always connected to end point).
Also there is a crash/hang, when I don't call ClosePath and I'm trying to draw geometry. E.g.:
var path = crc.GR.Device.CreatePathGeometry();
path.SetStartPoint(new D2DPoint(0, 0.5f));
D2DBezierSegment seg1 = new D2DBezierSegment()
{
point1 = new D2DPoint(0.25f, 0),
point2 = new D2DPoint(0.75f, 1),
point3 = new D2DPoint(1, 0.5f),
};
path.AddBeziers(new D2DBezierSegment[] { seg1 });
path.ClosePath(); //if I don't add this line, the application hangs
graphics.DrawPath(path, D2DColor.AliceBlue, 2 * pixelSize);
The text was updated successfully, but these errors were encountered:
The problem is, I want to draw non-closed polygon/bezier line. It's not possible using your library functions. The library draws always last point connected to first one.
The library is fantastic, thank you for that. I have a little problem with the ClosePath - I can't specify, whether the path should be opened or closed (as it is possible using D2D1_FIGURE_END in D2D). It's impossible to draw bezier cubic curves like this (the first point is always connected to end point).
Also there is a crash/hang, when I don't call ClosePath and I'm trying to draw geometry. E.g.:
The text was updated successfully, but these errors were encountered: