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

Icon (32x32) to (16x16)

P: n/a
I give up...I've searched and tried many things and can get the icon to a
bitmap and resized from 32x32 to 16x16. However, I can't seem to get the new
16x16 bitmap converted back to an icon for saving. The following gives me an
error (Value can't be Null...Parameter Encoder)

Dim format As Imaging.ImageFormat = Imaging.ImageFormat.Icon
im2.Save(stream2, format)
' where im2 is my resized bitmap and stream is a memory stream.

If I change the "format" to a BMP, it works fine but witn the Icon format,
it won't.

Any help would be appreciated. I have read all I can find on encoder class
for GDI and bascially know how to pass the encoder parameters in the form of
an array of object values such as colordepth, etc but can't seem to figure
out what object values are/is needed?-
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.