do you have a working code to share.
I’m trying to figure out how to save to a file an IBitmapImage image.
I need to resize existing .jpg file and it seems like the only API for Windows Mobile. I managed to load it convert it to IImage -> IBitmapImage -> IBasicBitmapOps and resize it finally, but I have no clue how to save it properly to a new file.
Use
IBitmapImage::LockBitsto get access to the image data via itsBitmapData* lockedBitmapDataparameter. Use theBitmapDatato prepare a bitmap file info header, then write that one and the image data inBitmapData::Scan0to a file using regular file writing with::WriteFileor higher level ones if you use such.