jingwood / d2dlib

A .NET library for hardware-accelerated, high performance, immediate mode rendering via Direct2D.
MIT License
234 stars 40 forks source link

Allow combining geometries #99

Closed MarkhusGenferei closed 1 year ago

MarkhusGenferei commented 1 year ago

Hi,

The proposals in this PR are functionnal. D2DDevice provides the following new method for combining two path geometries. The new GeometriesCombine sample demonstrates it.

Enjoy !

public D2DPathGeometry CreateCombinedGeometry(D2DPathGeometry path1, D2DPathGeometry path2, 
            D2D1_COMBINE_MODE combineMode, FLOAT flatteningTolerance = 10f)
jingwood commented 1 year ago

@MarkhusGenferei Thanks very much!