我想在 C++ 中使用只读模式使用 GDI+ 打开图像(jpeg、bmp)。我该怎么做? 非常感谢!
最佳答案
在图像文件方面,它始终是只读的。 MSDN 的 Gdiplus::Image::Save :
GDI+ does not allow you to save an image to the same file that you used to construct the image.
在内存中的图像方面,它从不是只读的。当作为 Gdiplus::Bitmap 或 Gdiplus::Image 加载时,图像总是可以被修改——你不能阻止创建操作它的 Gdiplus::Graphics。
关于c++ - 如何以只读模式打开 GDI+ 位图?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3031846/