Your problem is DrawRectangle. The starting location of your rectangle reaches the end of your initial bitmap.
If you change the location of your rectangle you will be able to see it completely.
using (Graphics g2 = Graphics.FromImage(b))
{
g2.DrawRectangle(new Pen(Color.White, 7.2f), 50, 50, 150, 100);
}
Francis B.
2009-07-01 18:05:20