Hi Support,
thank you for the update.
I tested and the result is now as expected.
But I still found a problem when I am not using BeginPath/EndPath/StrokeAndFillPath.
When I comment out these three lines, I still have the old problem.
procedure DrawShape( Canvas: TCanvas );
begin
Canvas.Brush.Color := clLime;
Canvas.Brush.Style := bsSolid;
Canvas.Pen.Width := 5;
Canvas.Pen.Color := clGrayText;
Canvas.MoveTo( 1000 , 500 );
// BeginPath( Canvas.Handle );
SetArcDirection( Canvas.Handle, AD_COUNTERCLOCKWISE );
Canvas.ArcTo( 1500 , 500 , 500 , 1500 , 1000 , 500 , 500 , 1000 );
Canvas.LineTo( 550 , 1050 );
SetArcDirection( Canvas.Handle, AD_CLOCKWISE );
Canvas.ArcTo( 550 , 1550 , 1550 , 550 , 550 , 1050 , 1050 , 550 );
Canvas.LineTo( 1000 , 500 );
// EndPath(Canvas.Handle);
// StrokeAndFillPath(Canvas.Handle);
end;
Here is the result: 🖼 wpdf-ArcTo-problem3.jpg (www.ahnenblatt.de)
So ArcTo is not working in every situation.
Perhaps you can fix this also.
Thanks, Dirk