コード例 #1
0
        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();
            }
        }
コード例 #2
0
        public void Tessellate(D2D1TessellationSink tessellationSink)
        {
            if (tessellationSink == null)
            {
                throw new ArgumentNullException("tessellationSink");
            }

            this.GetHandle<ID2D1Geometry>().Tessellate(IntPtr.Zero, D2D1Constants.DefaultFlatteningTolerance, (ID2D1TessellationSink)tessellationSink.Handle);
        }