Geometry() public static method

public static Geometry ( Factory factory, Action figureBuilder ) : SharpDX.Direct2D1.PathGeometry
factory Factory
figureBuilder Action
return SharpDX.Direct2D1.PathGeometry
        public IGeometry Widen(double strokeWeight)
        {
            var widened = Path.Geometry(
                Geometry.Factory,
                sink => Geometry.Widen(strokeWeight.import(), sink));

            return(new GeometryImplementation(widened).Outline());
        }
        public IGeometry Outline()
        {
            var widened = Path.Geometry(
                Geometry.Factory,
                sink => Geometry.Outline(sink));

            return(new GeometryImplementation(widened));
        }
        public IGeometry Combine(CombineMode mode, IGeometry other)
        {
            var otherImplementation = other.import();

            var combined = Path.Geometry(
                Geometry.Factory,
                sink => Geometry.Combine(otherImplementation, mode.import(), sink));

            return(new GeometryImplementation(combined));
        }
        public IGeometry Transform(Matrix matrix)
        {
            var transformed = Path.Geometry(
                Geometry.Factory,
                sink => Geometry.Simplify(
                    GeometrySimplificationOption.CubicsAndLines,
                    matrix.import(),
                    // default flattening tolerance:
                    0.25f,
                    sink));

            return(new GeometryImplementation(transformed));
        }