Create Color from R, G, B value : Color : Drawing 2D C# Examples


C# Examples » Drawing 2D » Color »

 

Create Color from R, G, B value









    
using  System;
using  System.Drawing;
using  System.Windows.Forms;

public  class  MainClass{
      public  static  void  Main(){
        Color  currColor  =  Color.FromArgb(123,  123,  123);
        
        Console.WriteLine(currColor.ToString());        
      }

}
    
   
  
   



Output

Color [A=255, R=123, G=123, B=123]


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Drawing 2D
» Color