Get Full Rectangle from Bitmap - CSharp System.Drawing

CSharp examples for System.Drawing:Image Size

Description

Get Full Rectangle from Bitmap

Demo Code


using System.Drawing.Imaging;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;/*from   w  w  w.j a va 2 s  .com*/

public class Main{
        static public Rectangle GetFullRectangle(this Bitmap Bitmap)
      {
         return new Rectangle(0, 0, Bitmap.Width, Bitmap.Height);
      }
}

Related Tutorials