Example #1
0
        public static global::System.Object FromArgb(int n1, int n2, int n3, int n4)
        {
//XMLVM_BEGIN_WRAPPER[Compatlib.System.Windows.Media.Color: Compatlib.System.Windows.Media.Color FromArgb(int, int, int, int)]
            Compatlib.System.Windows.Media.Color newColor = new Compatlib.System.Windows.Media.Color();
            newColor.setR((short)n2);
            newColor.setG((short)n3);
            newColor.setB((short)n4);
            newColor.color.A = (byte)n1;
            return(newColor);
//XMLVM_END_WRAPPER[Compatlib.System.Windows.Media.Color: Compatlib.System.Windows.Media.Color FromArgb(int, int, int, int)]
        }
Example #2
0
 public static global::System.Object FromRgb(short n1, short n2, short n3)
 {
     //XMLVM_BEGIN_WRAPPER[Compatlib.System.Windows.Media.Color: Compatlib.System.Windows.Media.Color FromRgb(short, short, short)]
     Compatlib.System.Windows.Media.Color newColor = new Compatlib.System.Windows.Media.Color();
     newColor.setR(n1);
     newColor.setG(n2);
     newColor.setB(n3);
     newColor.color.A = 0xFF;
     return newColor;
     //XMLVM_END_WRAPPER[Compatlib.System.Windows.Media.Color: Compatlib.System.Windows.Media.Color FromRgb(short, short, short)]
 }
Example #3
0
        public static global::System.Object FromRgb(short n1, short n2, short n3)
        {
//XMLVM_BEGIN_WRAPPER[Compatlib.System.Windows.Media.Color: Compatlib.System.Windows.Media.Color FromRgb(short, short, short)]
            Compatlib.System.Windows.Media.Color newColor = new Compatlib.System.Windows.Media.Color();
            newColor.setR(n1);
            newColor.setG(n2);
            newColor.setB(n3);
            newColor.color.A = 0xFF;
            return(newColor);
//XMLVM_END_WRAPPER[Compatlib.System.Windows.Media.Color: Compatlib.System.Windows.Media.Color FromRgb(short, short, short)]
        }
Example #4
0
 public static global::System.Object FromArgb(int n1, int n2, int n3, int n4)
 {
     //XMLVM_BEGIN_WRAPPER[Compatlib.System.Windows.Media.Color: Compatlib.System.Windows.Media.Color FromArgb(int, int, int, int)]
     Compatlib.System.Windows.Media.Color newColor = new Compatlib.System.Windows.Media.Color();
     newColor.setR((short) n2);
     newColor.setG((short) n3);
     newColor.setB((short) n4);
     newColor.color.A = (byte) n1;
     return newColor;
     //XMLVM_END_WRAPPER[Compatlib.System.Windows.Media.Color: Compatlib.System.Windows.Media.Color FromArgb(int, int, int, int)]
 }