forked from misakamm/xege
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 支持保存带透明通道的 BMP 图片 * adjust: 保存图像文件增加 withAlphaChannel 参数,用于指定是否保存透明通道,优先以 PNG 格式保存 * docs: 更新 savebmp(), saveimage(), savepng() 函数相关文档 * refactor: 移除不再使用的 saveimagetofile() 函数
- Loading branch information
Showing
7 changed files
with
254 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title>savebmp</title> | ||
<link rel="stylesheet" type="text/css" href="../../css/index-table.css"/> | ||
</head> | ||
<body> | ||
|
||
<pre><font size="4"><a href="../../index.htm">主页</a> / <a href="../index.htm">库函数目录</a> / <a href="index.htm">图像处理</a> / savebmp</font> | ||
<font size="4"> | ||
<font size="4" color="#0000FF"><strong>功能:</strong></font> | ||
|
||
将图像以 BMP 格式保存到文件中。(如果文件已存在,会覆盖原文件。) | ||
|
||
<font size="4" color="#0000FF"><strong>声明:</strong></font> | ||
<pre><font color=#0000FF>int </font><font color=#008080>savebmp</font>( | ||
<font color=#800080>PCIMAGE </font> pimg, | ||
<font color=#800080>LPCSTR </font> filename, | ||
<font color=#0000FF>bool </font> withAlphaChannel = false | ||
); | ||
|
||
<font color=#0000FF>int </font><font color=#008080>savebmp</font>( | ||
<font color=#800080>PCIMAGE </font> pimg, | ||
<font color=#800080>LPCWSTR </font> filename, | ||
<font color=#0000FF>bool </font> withAlphaChannel = false | ||
); | ||
</pre> | ||
<font size="4" color="#0000FF"><strong>参数:</strong></font> | ||
pimg | ||
要保存的图像 | ||
|
||
filename | ||
保存的图像文件名 | ||
|
||
withAlphaChannel | ||
是否保存图像透明度通道,true: 保存, false: 不保存。默认为不保存。 | ||
|
||
<font size="4" color="#0000FF"><strong>返回值:</strong></font> | ||
|
||
成功返回0,否则返回非0,若pimg传入错误,会引发运行时异常。 | ||
|
||
<font size="4" color="#0000FF"><strong>示例:</strong></font> | ||
|
||
(无) | ||
|
||
</font> | ||
</pre> | ||
|
||
</body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.