How do I get the USED size of an image. For example:
Image image = new Bitmap(400, 400);
using (Graphics g = Graphics.FromImage(image))
{
g.FillRectangle(Brushes.Black, new Rectangle(100, 100, 200, 200));
}
The image is 400x400 but the used area is 200x200. Is there a way I can get the dimensions of the used area of the image?