예제 #1
0
 public override void Draw(object control, GraphicsHandler graphics, bool stroke, FillMode fillMode)
 {
     if (stroke)
     {
         graphics.Control.SetStrokeColor((CGColor)control);
         graphics.Control.StrokePath();
     }
     else
     {
         graphics.Control.SetFillColor((CGColor)control);
         graphics.Fill(fillMode);
     }
 }
예제 #2
0
        public override void Draw(object control, GraphicsHandler graphics, bool stroke, FillMode fillMode, bool clip)
        {
            var nscolor = ((BrushData)control).NSColor;

            if (stroke)
            {
                nscolor.SetStroke();
                graphics.Control.StrokePath();
            }
            else
            {
                nscolor.SetFill();
                graphics.Fill(fillMode);
            }
        }