public Flatland.Core.Context SetFillColor(Flatland.Color color) { return(new Context(this, this.currentLineColor, ToCairoColor(color))); }
private Cairo.Color ToCairoColor(Flatland.Color color) { var colord = color.ToColorD(); return(new Cairo.Color(colord.Red, colord.Green, colord.Blue, colord.Alpha)); }
public Flatland.Core.Context SetLineColor(Flatland.Color color) { return(new Context(this, CreateGdiPen(color))); }
private Drawing.Color ToGdiColor(Flatland.Color color) { var colorb = color.ToColorB(); return(Drawing.Color.FromArgb(colorb.Alpha, colorb.Red, colorb.Green, colorb.Blue)); }
private Drawing.Pen CreateGdiPen(Flatland.Color color) { return(new Drawing.Pen(ToGdiColor(color))); }
private Drawing.Brush CreateGdiBrush(Flatland.Color color) { return(new Drawing.SolidBrush(ToGdiColor(color))); }