I can’t seem to figure out how to load a pictureBox image from a bitmap in memory. Is it possible or do I have to create temp file for the bitmap?
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.
What format is the image in memory?
If you have an actual Bitmap object, just assign it to the PictureBox, as suggested by dtb:
If you have the image as a series of bytes held in a stream, you’ll need to load the image from the stream:
If you instead have a windows GDI handle to the bitmap, use
Essentially, it’s hard to answer your question with more than suggestions when you haven’t told us what format the Bitmap you have is held in.