How do I set the PixelFormat property in a GDI+ Bitmap if I can’t use one of the constructors that allow me to specify it? It looks like the PixelFormat property itself is read-only.
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.
I ended up using the following method of creating a second bitmap with the desired pixel format and drawing the original image on to it.