コード例 #1
0
ファイル: GraphicsContext.cs プロジェクト: nagyist/monoxide
		public void DrawPath(Path path, PathDrawingMode mode)
		{
			BeginPath(); // Clear the path before drawing
			AddPath(path); // Adds the path to the context's now empty current path
			DrawPath(mode); // Render the context's current path
			BeginPath(); // Clear the path after drawing (same as with other path painting methods)
		}
コード例 #2
0
ファイル: Path.cs プロジェクト: nagyist/monoxide
 private Path(Path @base)
 {
     data = new PathData(@base.data);
 }
コード例 #3
0
ファイル: GraphicsContext.cs プロジェクト: nagyist/monoxide
		public void AddPath(Path path)
		{
			// TODO: Allow usage of native CGPath objects
			path.Data.AddToContext(GraphicsPort);
		}