Create and offset a point : Point : Drawing 2D C# Examples


C# Examples » Drawing 2D » Point »

 

Create and offset a point









    
using  System;
using  System.Drawing;

class  MainClass
{
    public  static  int  Main(string[]  args)
    {
        
        Point  pt  =  new  Point(100,  72);
        Console.WriteLine(pt);
        pt.Offset(20,  20);
        Console.WriteLine(pt);
    
        return  0;
    }
}
    
   
  
   



Output

{X=100,Y=72}
{X=120,Y=92}


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Drawing 2D
» Point