public void Tessellate(D2D1Matrix3X2F worldTransform, D2D1TessellationSink tessellationSink) { if (tessellationSink == null) { throw new ArgumentNullException("tessellationSink"); } GCHandle worldTransformHandle = GCHandle.Alloc(worldTransform, GCHandleType.Pinned); try { this.GetHandle<ID2D1Geometry>().Tessellate(worldTransformHandle.AddrOfPinnedObject(), D2D1Constants.DefaultFlatteningTolerance, (ID2D1TessellationSink)tessellationSink.Handle); } finally { worldTransformHandle.Free(); } }
public void Tessellate(D2D1TessellationSink tessellationSink) { if (tessellationSink == null) { throw new ArgumentNullException("tessellationSink"); } this.GetHandle<ID2D1Geometry>().Tessellate(IntPtr.Zero, D2D1Constants.DefaultFlatteningTolerance, (ID2D1TessellationSink)tessellationSink.Handle); }