예제 #1
0
        public static Sd.Fill ToFill(this Wg.Color input)
        {
            Sd.Fill fill = new Sd.Fill();
            fill.BackgroundColor = input.ToDynamicColor();

            return(fill);
        }
예제 #2
0
        public static Sd.Color ToDynamicColor(this Wg.Color input)
        {
            Sd.Color color = new Sd.Color();
            color.A = (byte)input.A;
            color.R = (byte)input.R;
            color.G = (byte)input.G;
            color.B = (byte)input.B;

            return(color);
        }
예제 #3
0
 public static Sm.Color ToMediaColor(this Wg.Color input)
 {
     return(Sm.Color.FromArgb((byte)input.A, (byte)input.R, (byte)input.G, (byte)input.B));
 }
예제 #4
0
 public static string ToSVG(this Wg.Color input)
 {
     return("rgb(" + input.R + "," + input.G + "," + input.B + ")");
 }
예제 #5
0
 public static Dr.Color ToDrawingColor(this Wg.Color input)
 {
     return(Dr.Color.FromArgb(input.A, input.R, input.G, input.B));
 }
예제 #6
0
 public Modifier(Modifier modifier)
 {
     this.ModifierMode = modifier.ModifierMode;
     this.Value        = modifier.Value;
     this.Color        = new Wg.Color(modifier.Color);
 }