Esempio n. 1
0
        private Pen[] CreatePens( Paint.Pens.Pen pen )
        {
            if( pen == null )
            {
                return new Pen[] { };
            }

            PenVisitor visitor = new PenVisitor();

            pen.Visit( visitor );

            return visitor.GetPens();
        }
Esempio n. 2
0
        private BrushStage[] CreateBrushes( Graphics graphics, Types.Rectangle bounds, Paint.Brushes.Brush brush )
        {
            if( brush == null )
            {
                return new BrushStage[] { };
            }

            BrushVisitor visitor = new BrushVisitor( graphics );

            brush.Visit( bounds, visitor );

            return visitor.GetBrushes();
        }