public void Paint(GraphPath figure, Graphics g, int time) { Brush brush1 = null; brush1 = BrushManager.GetGDIBrushFromPatten(this.pattern, figure.GetBounds()); g.FillPath(brush1, figure.GPath); }
public void Paint(GraphicsPath path, Graphics g, int time, float opacity) { Brush brush1 = null; this.pattern.Opacity = opacity; brush1 = BrushManager.GetGDIBrushFromPatten(this.pattern, path.GetBounds()); g.FillPath(brush1, path); }