public void SetMiterLimit(Pen widget, float miterLimit) { widget.ToAndroid().StrokeMiter = miterLimit; }
public void SetDashStyle(Pen widget, DashStyle dashStyle) { var pen = widget.ToAndroid(); if (dashStyle == null || dashStyle.IsSolid) pen.SetPathEffect(null); else { // TODO: create a new ag.DashPathEffect with the appropriate intervals throw new NotImplementedException(); } }
public void SetLineCap(Pen widget, PenLineCap lineCap) { var pen = widget.ToAndroid(); pen.StrokeCap = lineCap.ToSD(); SetDashStyle(widget, widget.DashStyle); }
public float GetMiterLimit(Pen widget) { return widget.ToAndroid().StrokeMiter; }
public void SetLineJoin(Pen widget, PenLineJoin lineJoin) { widget.ToAndroid().StrokeJoin = lineJoin.ToAndroid(); }
public PenLineCap GetLineCap(Pen widget) { return widget.ToAndroid().StrokeCap.ToEto(); }
public PenLineJoin GetLineJoin(Pen widget) { return widget.ToAndroid().StrokeJoin.ToEto(); }
public void SetThickness(Pen widget, float thickness) { widget.ToAndroid().StrokeWidth = thickness; }
public float GetThickness(Pen widget) { return widget.ToAndroid().StrokeWidth; }
public void SetColor(Pen widget, Color color) { widget.ToAndroid().Color = color.ToAndroid(); }
public Color GetColor(Pen widget) { return widget.ToAndroid().Color.ToEto(); }