By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,064 Members | 1,524 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,064 IT Pros & Developers. It's quick & easy.

a generic error occurred in gdi+

P: 1
when i run below sample code it getting an error

Expand|Select|Wrap|Line Numbers
  1. PictureBox3.Image.Save(Application.StartupPath & "Image" & ".jpeg")
  2. Dim source As String = Application.StartupPath & "Image" & ".jpeg"
  3. PictureBox3.Image = New Bitmap(source)
  4. Dim mstr As New MemoryStream()
  5. PictureBox3.Image.Save(mstr, PictureBox3.Image.RawFormat)
  6. buf = mstr.GetBuffer
Nov 23 '12 #1
Share this Question
Share on Google+
1 Reply


Rabbit
Expert Mod 10K+
P: 12,383
It would help to know the full error message.
Nov 24 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.