Beispiel #1
0
 public void FillRectangle(Position position, Dimensions size)
 {
     graphics.FillRectangle(GetBrush(), position.X, position.Y, size.Width, size.Height);
 }
Beispiel #2
0
 public Paintable(float width, float height)
 {
     Size = new Dimensions(width, height);
 }
Beispiel #3
0
 public void DrawRectangle(Position position, Dimensions size)
 {
     graphics.DrawRectangle(GetPen(), position.X, position.Y, size.Width, size.Height);
 }