I suspect that you're drawing on the image with a black pen. Perhaps
creating a text bitmap?
When you create an image it will be a 32bit per pixel image with all the
pixel elements, including the alpha, set to zero. When saved this will look
like a black image. If you draw on it in black before saving it it will be
black ink on a black background (ie.. all black)
Before drawing on the image use the Graphics.Clear method to clear the image
to some sensible colour (white is good)
Then you'll see your image.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"melanieab" <me*******@discussions.microsoft.com> wrote in message
news:67**********************************@microsof t.com...
Hi,
I'm trying to save a bitmap file so I can print it later. I have
Image.Save("sImage.bmp",System.Drawing.Imaging.Ima geFormat.Bmp);
The file sImage.bmp shows up in the bin\debug folder but when I try to
print
it (or open it), it's completely black. I know Image is the correct
picture
because when I immediately print it, it works. What am I doing wrong?
Thanks!
Melanie