Example #1
0
 public void DrawAndAdd(WriteableBitmap wb, Point point, Color color, int width)
 {
     Point = point;
     Color = color;
     Width = width;
     MyBoundary = new MyBoundary(Point.X, Point.Y);
     wb.DrawPoint(point, color, Width);
 }
Example #2
0
        public override void EraseObject(List<MyObject> list, WriteableBitmap wb, Color c)
        {
            wb.DrawPoint(Point, c, Width);

            if (list.Contains(this))
            {
                list.Remove(this);
            }
        }
Example #3
0
        public override void HighlightObject(bool ifHighlight, WriteableBitmap wb, Color c)
        {
            Color color = ifHighlight ? c : Color;

            wb.DrawPoint(Point, color, Width);
        }
Example #4
0
 public override void DrawObject(WriteableBitmap wb)
 {
     wb.DrawPoint(Point, Color, Width);
 }