GDI+ : construct Image from an IStream
-
im trying to construct a GDI+ Image object from an IStream; the IStream is created on global memory successfully and assigned valid image data but, when i try image = ::new Image(stream) laststatus says something about wrong/incorrect arguments ("InvalidParameter" i think) has anybody tried this ?
-
im trying to construct a GDI+ Image object from an IStream; the IStream is created on global memory successfully and assigned valid image data but, when i try image = ::new Image(stream) laststatus says something about wrong/incorrect arguments ("InvalidParameter" i think) has anybody tried this ?
Did you rewind the stream? I.e. pStream->Seek(0, STREAM_SEEK_SET, 0)? -- Try walking in my shoes. You stumble in my footsteps.
-
Did you rewind the stream? I.e. pStream->Seek(0, STREAM_SEEK_SET, 0)? -- Try walking in my shoes. You stumble in my footsteps.
-
Did you rewind the stream? I.e. pStream->Seek(0, STREAM_SEEK_SET, 0)? -- Try walking in my shoes. You stumble in my footsteps.
-
I've run into that problem a couple of times. :-O -- Try walking in my shoes. You stumble in my footsteps.
-
nope, doesnt work still the GDI+ Image still has property nativeImage = 0x00 and lastResult is InvalidParameter any other ideas ?
Sorry, I'm out of ideas. :( -- Try walking in my shoes. You stumble in my footsteps.
-
Sorry, I'm out of ideas. :( -- Try walking in my shoes. You stumble in my footsteps.
thanx, Jörgen i think i found the cause - its actually not the IStream, but the GIF image data inside of it that makes the Image constructor fail. When i exported the GIF image and saved it anew (in acdsee) - the new file is slightly different and Image aquires it without problems. I'll be digging it some more, but its a different matter now :) thanx again see you around