Пример #1
0
 public static SystemColor ToSystemColor(this Color color)
 {
     return(SystemColor.FromArgb(color.A, color.R, color.G, color.B));
 }
Пример #2
0
 public bool SystemDrawingColorEqual()
 {
     return(SystemColor.FromArgb(128, 128, 128, 128).Equals(SystemColor.FromArgb(128, 128, 128, 128)));
 }
Пример #3
0
        public static SystemColor ToSystemColor(this Color4 color4)
        {
            var color = (Color)color4;

            return(SystemColor.FromArgb(color.A, color.R, color.G, color.B));
        }
Пример #4
0
        public static SystemColor ToSystemColor(this Color3 color3)
        {
            var color = (Color)color3;

            return(SystemColor.FromArgb(255, color.R, color.G, color.B));
        }
Пример #5
0
        public static SystemColor ToSystemColor(this Color4 color)
        {
            var byteColor = new Color(color);

            return(SystemColor.FromArgb(byteColor.A, byteColor.R, byteColor.G, byteColor.B));
        }