Get Rectangle from Bitmap - CSharp System.Drawing

CSharp examples for System.Drawing:Image Size

Description

Get Rectangle from Bitmap

Demo Code


using System.Text;
using System.Drawing;
using System.Collections.Generic;
using System;//w ww .j  a va2s .  c  o m

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

Related Tutorials