save picturebox image using c#
-
ImageFormat format = ImageFormat.Jpeg; SaveFileDialog sfd = new SaveFileDialog(); sfd.Filter = "JPEG Files(*.jpg)|*.jpg"; if (sfd.ShowDialog() == DialogResult.OK) { image.Image.Save(sfd.FileName, format); } Hai friends whrn i was using this code fro saving picture box image as jpeg it was not saving and if save and reopen the jpeg file it was balnk can any one help me out in this
-
ImageFormat format = ImageFormat.Jpeg; SaveFileDialog sfd = new SaveFileDialog(); sfd.Filter = "JPEG Files(*.jpg)|*.jpg"; if (sfd.ShowDialog() == DialogResult.OK) { image.Image.Save(sfd.FileName, format); } Hai friends whrn i was using this code fro saving picture box image as jpeg it was not saving and if save and reopen the jpeg file it was balnk can any one help me out in this
Code looks fine. Are adding any file extensions with the file name ? Try setting
sfd.AddExtension = true;
.All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
ImageFormat format = ImageFormat.Jpeg; SaveFileDialog sfd = new SaveFileDialog(); sfd.Filter = "JPEG Files(*.jpg)|*.jpg"; if (sfd.ShowDialog() == DialogResult.OK) { image.Image.Save(sfd.FileName, format); } Hai friends whrn i was using this code fro saving picture box image as jpeg it was not saving and if save and reopen the jpeg file it was balnk can any one help me out in this
Hmm, odd. Are you sure you havn't set the BackgroundImage property of the picturebox by mistake?
My current favourite word is: PIE! Good ol' pie, it's been a while.