Add size to a Point : Point : Graphics C# Source Code


Custom Search

C# Source Code » Graphics » Point »

 

Add size to a Point








    
 

using System;

using System.Drawing;

class Class1 {
    [STAThread]
    static void Main(string[] args) {
        Point topLeft = new Point(10, 10);
        Size rectangleSize = new Size(50, 50);
        Point bottomRight = topLeft + rectangleSize;
        Console.WriteLine("topLeft = " + topLeft);
        Console.WriteLine("bottomRight = " + bottomRight);
        Console.WriteLine("Size = " + rectangleSize);
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Graphics
» Point