Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #4
0
        public SKPath Simplify()
        {
            var result = new SKPath();

            if (Simplify(result))
            {
                return(result);
            }
            else
            {
                result.Dispose();
                return(null);
            }
        }
예제 #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);
            }
        }
예제 #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;
		}
예제 #7
0
		public SKPath Simplify ()
		{
			var result = new SKPath ();
			if (Simplify (result)) {
				return result;
			} else {
				result.Dispose ();
				return null;
			}
		}
예제 #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;
			}
		}