Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void
Esempio n. 1
0
        public SKPath GetSegment(float start, float stop, bool startWithMoveTo)
        {
            var dst = new SKPath();

            if (!GetSegment(start, stop, dst, startWithMoveTo))
            {
                dst.Dispose();
                dst = null;
            }
            return(dst);
        }
Esempio n. 2
0
        // GetBoundaryPath

        public SKPath GetBoundaryPath()
        {
            var path = new SKPath();

            if (!SkiaApi.sk_region_get_boundary_path(Handle, path.Handle))
            {
                path.Dispose();
                path = null;
            }
            return(path);
        }
Esempio n. 3
0
        public static SKPath ParseSvgPathData(string svgPath)
        {
            SKPath path    = new SKPath();
            var    success = SkiaApi.sk_path_parse_svg_string(path.Handle, svgPath);

            if (!success)
            {
                path.Dispose();
                path = null;
            }
            return(path);
        }
Esempio n. 4
0
        public SKPath Simplify()
        {
            var result = new SKPath();

            if (Simplify(result))
            {
                return(result);
            }
            else
            {
                result.Dispose();
                return(null);
            }
        }
Esempio n. 5
0
        public SKPath Op(SKPath other, SKPathOp op)
        {
            var result = new SKPath();

            if (Op(other, op, result))
            {
                return(result);
            }
            else
            {
                result.Dispose();
                return(null);
            }
        }
Esempio n. 6
0
		public static SKPath ParseSvgPathData (string svgPath)
		{
			SKPath path = new SKPath ();
			var success = SkiaApi.sk_path_parse_svg_string (path.Handle, svgPath);
			if (!success) {
				path.Dispose ();
				path = null;
			}
			return path;
		}
Esempio n. 7
0
		public SKPath Simplify ()
		{
			var result = new SKPath ();
			if (Simplify (result)) {
				return result;
			} else {
				result.Dispose ();
				return null;
			}
		}
Esempio n. 8
0
		public SKPath Op (SKPath other, SKPathOp op)
		{
			var result = new SKPath ();
			if (Op (other, op, result)) {
				return result;
			} else {
				result.Dispose ();
				return null;
			}
		}