I have a Bitmap and a Panel. Both are 500 x 500 px. Why is the bitmap so much bigger than the panel?
Code sample:
Bitmap img = new Bitmap(500, 500);
//panel properties set by properties tab
Graphics g = Graphics.FromImage(img);
g.DrawEllipse(new Pen(Color.Black, 2), 0, 0, 500, 500);
pnl.BackgroundImage = img;
pnl.Refresh();
What am I doing wrong / missing? Thanks in advance!