예제 #1
0
 public Flatland.Core.Context SetFillColor(Flatland.Color color)
 {
     return(new Context(this, this.currentLineColor, ToCairoColor(color)));
 }
예제 #2
0
        private Cairo.Color ToCairoColor(Flatland.Color color)
        {
            var colord = color.ToColorD();

            return(new Cairo.Color(colord.Red, colord.Green, colord.Blue, colord.Alpha));
        }
예제 #3
0
 public Flatland.Core.Context SetLineColor(Flatland.Color color)
 {
     return(new Context(this, CreateGdiPen(color)));
 }
예제 #4
0
        private Drawing.Color ToGdiColor(Flatland.Color color)
        {
            var colorb = color.ToColorB();

            return(Drawing.Color.FromArgb(colorb.Alpha, colorb.Red, colorb.Green, colorb.Blue));
        }
예제 #5
0
 private Drawing.Pen CreateGdiPen(Flatland.Color color)
 {
     return(new Drawing.Pen(ToGdiColor(color)));
 }
예제 #6
0
 private Drawing.Brush CreateGdiBrush(Flatland.Color color)
 {
     return(new Drawing.SolidBrush(ToGdiColor(color)));
 }