private Pen[] CreatePens( Paint.Pens.Pen pen ) { if( pen == null ) { return new Pen[] { }; } PenVisitor visitor = new PenVisitor(); pen.Visit( visitor ); return visitor.GetPens(); }
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(); }