Cairo.Context.AppendPath C# (CSharp) Метод

AppendPath() публичный Метод

public AppendPath ( Path path ) : void
path Path
Результат void
        public void AppendPath(Path path)
        {
            CheckDisposed ();
            NativeMethods.cairo_append_path (handle, path.Handle);
        }

Usage Example

Пример #1
0
        public void Draw(ImageSurface dst)
        {
            if (disposed)
            {
                throw new ObjectDisposedException("PlacedSurface");
            }

            using (Cairo.Context g = new Cairo.Context(dst)) {
                g.Save();

                Rectangle r = what.GetBounds().ToCairoRectangle();

                // We need to use the source operator to fully replace the old
                // data.  Or else we may paint transparent on top of it and
                // it will still be visible.  [Bug #670411]
                using (Path p = g.CreateRectanglePath(new Rectangle(where.X, where.Y, r.Width, r.Height))) {
                    g.AppendPath(p);
                    g.Clip();
                    g.Operator = Operator.Source;
                    g.DrawPixbuf(what.ToPixbuf(), new Cairo.Point(where.X, where.Y));
                }

                g.Restore();
            }
        }
All Usage Examples Of Cairo.Context::AppendPath