Я пытаюсь исключить одну кривую Безье из другой, но она только расширяет мои линии. Вот код:
ComPtr<ID2D1GeometrySink> pGeometrySink = nullptr;
ComPtr<ID2D1PathGeometry> pathGeometry;
DX::ThrowIfFailed(drawingContext->GetD2Factory()->CreatePathGeometry(&pathGeometry));
DX::ThrowIfFailed(pathGeometry->Open(&pGeometrySink));
path1->CombineWithGeometry(path2.Get(), D2D1_COMBINE_MODE_EXCLUDE,NULL,NULL, pGeometrySink.Get());
pGeometrySink->Close();
return pathGeometry;
Есть ли другой способ сделать это?