I’m executing dcraw and using an anonymous pipe to pipe it to a char array.
My question is how can I create a Gdiplus::Image object from a char array containing the jpeg image? Without writing and reading it from the disk.
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.
You can create a
Gdiplus::Bitmapfrom anIStreamsource. There are built-in Windows APIs that can do this for you – see CreateStreamOnHGlobal. Another way is to write your own class that implementsIStream.Here is an example using
CreateStreamOnHGlobalto load PNG resources from memory.