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

Image saving to Memory Stream

P: n/a
I have the following:

Dim stream As New IO.MemoryStream
fmParent.Icon = icon.FromHandle(New IntPtr(retval))
'RESIZE ICON to 16 x 16
Dim im As Image
im = im.FromStream(stream)
im = Resize(im, 16, 16)
stream.Position = 0
Dim format As System.Drawing.Imaging.ImageFormat
format = System.Drawing.Imaging.ImageFormat.Icon
im.Save(stream, format) ' Get ERROR here that says:

"Value cannot be NULL..Parameter Name: Encoder

Any ideas on what's wrong?
Dennis in Houston
Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.