如何将这个新字符**写入.bmp文件
How to write this new char** to .bmp file?
如何将char**
转换为bitmap
?我有图像width x height
和字符矩阵3 * width x height
(每个像素都像triplet of char red, char green, char blue
一样表示(。我从另一个加载的位图填充了这个矩阵(我只需要原始位图的较小矩形,所以我填充了char**/matrix
(。如何将这个新的char**
写入.bmp
文件?我试过http://www.cplusplus.com/forum/beginner/12848/
但它的行为很奇怪。
几个可能的方向:
-
使用Microsoft API:CImage或CBitmap
-
使用现有库:http://code.google.com/p/libbmp/或http://easybmp.sourceforge.net/或http://sourceforge.net/projects/cimg/或http://people.sc.fsu.edu/~jburkardt/cpp_src/bmp_io/bmp_io.html或ImageMagick(更多(
-
不要使用库,从这里开始:在没有其他库的情况下用纯c/c++编写BMP图像
相关文章:
- 写入C++字符数组
- 将未签名的字符写入输出文件
- ifstream 读取的字符与文件中写入的字符不同
- 将结构写入二进制文件后,该文件仍然具有正常字符,而不是不可读字符
- 将代码从 EEPROM 写入字符数组
- 字符数组中的十六进制导致写入套接字时出现随机字符
- 将无符号字符的向量写入二进制文件 c++
- fwrite 4 字符数组,将写入 7 而不是 4
- 写入文件时会出现 C++ 奇怪的字符
- 为什么在编辑 fastq 文件并将输出写入新的 fastq 文件时引入不可打印字符?
- freopen和fwprintf将不正确的宽字符写入TXT文件
- 尝试使用 fstream 将字符写入文件:'operator<<'不匹配
- 将 Unicode 字符/字符串写入文件
- 如何正确写入多维字符数组未知数量的值,但固定的字符堆
- 为什么 vsnprintf 没有像 strncpy 那样写入相同数量的字符
- WriteFile() 可以用来将wchar_t字符写入文件吗?
- 如何将这个新字符**写入.bmp文件
- c++ 将字符写入批处理文件
- 如何将文件中一定数量的字符写入字符串
- 使用write()将无符号字符写入二进制文件