問題描述
我想加載一個 BMP 文件,在內存中對其進行一些操作,然后在 Windows(Win32 原生)上使用 C++ 輸出一個新的 BMP 文件.我知道 ImageMagick 并且它是 C++ 綁定 Magick++,但我認為這對這個項目來說太過分了,因為我目前對其他文件格式或平臺不感興趣.
I would like to load a BMP file, do some operations on it in memory, and output a new BMP file using C++ on Windows (Win32 native). I am aware of ImageMagick and it's C++ binding Magick++, but I think it's an overkill for this project since I am currently not interested in other file formats or platforms.
就讀取和寫入 BMP 文件的代碼設置而言,最簡單的方法是什么?答案可能是就用 Magick++,它是最簡單的."
What would be the simplest way in terms of code setup to read and write BMP files? The answer may be "just use Magick++, it's the simplest."
相關問題:最好的圖像處理庫是什么?
推薦答案
當只為 Windows 開發時,我通常只使用 ATL CImage 類
When developing just for Windows I usually just use the ATL CImage class
這篇關于C++:在 Windows 上使用 C++ 讀寫 BMP 文件的最簡單方法是什么?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!