I have a Memory stream in png format and want to save it to a Bitmap object so that I can extract the pixels. I am using .net 2.0 and cannot use a higher version due to certain restrictions. Can you please help me out ???
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have you looked at the System.Drawing.Bitmap object?
It has a constructor of
public Bitmap(Stream stream)you can then do what you like with the bitmap before calling
Save