Files
dl_old/document/html/dl__image_8h_source.html
T
2026-03-03 16:12:17 +08:00

181 lines
30 KiB
HTML
Vendored

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>dl: dl/render/dl_image.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">dl
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.13.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',false,false,'search.php','搜索',false);
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_17297ffb27ce571941f5fb5008f01a1f.html">dl</a></li><li class="navelem"><a class="el" href="dir_fb7736e1c74498e30aec54e277779486.html">render</a></li> </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
<div class="headertitle"><div class="title">dl_image.h</div></div>
</div><!--header-->
<div class="contents">
<a href="dl__image_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#include &quot;<a class="code" href="dl__vector2_8h.html">base/dl_vector2.h</a>&quot;</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#include &quot;<a class="code" href="dl__type_8h.html">dl_type.h</a>&quot;</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#include &quot;<a class="code" href="dl__range__any_8h.html">base/dl_range_any.h</a>&quot;</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include &quot;<a class="code" href="dl__buffer_8h.html">memory/dl_buffer.h</a>&quot;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacedl.html">dl</a></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span>{</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e"> 28</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a> = <a class="code hl_class" href="classdl_1_1_vector2.html">Vector2&lt;uint32_t, unsigned&gt;</a>;</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="namespacedl.html#aae2169d4732e4c62499669b887d759bc"> 36</a></span><a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a>* <a class="code hl_function" href="namespacedl.html#aae2169d4732e4c62499669b887d759bc">createImage</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="namespacedl.html#af4b025efbd5dae0045cce4cbc9546416">Size</a>&amp; size, <span class="keyword">const</span> <a class="code hl_typedef" href="namespacedl.html#ab0aa26817739678b786d66b6c9f50ae7">Color</a>&amp; col);</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="namespacedl.html#a2f31a3958eec32007652728869628d57"> 42</a></span><a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a>* <a class="code hl_function" href="namespacedl.html#aae2169d4732e4c62499669b887d759bc">createImage</a>(std::string_view path_name);</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="namespacedl.html#a710ab1636ef5fba0577cc748b365040a"> 51</a></span><a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a>* <a class="code hl_function" href="namespacedl.html#a710ab1636ef5fba0577cc748b365040a">createImageSvg</a>(std::string_view path_name, <span class="keyword">const</span> <a class="code hl_typedef" href="namespacedl.html#af4b025efbd5dae0045cce4cbc9546416">Size</a>&amp; size);</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="namespacedl.html#a98bc2c68beac9a381c6ba72d375105ef"> 59</a></span><a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a>* <a class="code hl_function" href="namespacedl.html#a98bc2c68beac9a381c6ba72d375105ef">createImageWebp</a>(std::string_view path_name);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> </div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="namespacedl.html#ab778a2e5cf0434f44b504cddf34e6d38"> 62</a></span><a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a>* <a class="code hl_function" href="namespacedl.html#a98bc2c68beac9a381c6ba72d375105ef">createImageWebp</a>(<a class="code hl_typedef" href="namespacedl.html#a0e44c1b516814389464e02ec1e842e7f">BufferView</a> buf);</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span></div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="namespacedl.html#a37d044d8b805238a8dbe95d7676549ee"> 67</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="namespacedl.html#a37d044d8b805238a8dbe95d7676549ee">saveImage</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a>* img, std::string_view path_name);</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span></div>
<div class="foldopen" id="foldopen00070" data-start="{" data-end="}">
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="namespacedl_1_1_img.html"> 70</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacedl_1_1_img.html">Img</a></div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span>{</div>
<div class="foldopen" id="foldopen00078" data-start="{" data-end="}">
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="namespacedl_1_1_img.html#a70e0e680b145bd9c5ece340094528ff6"> 78</a></span><span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespacedl_1_1_img.html#a70e0e680b145bd9c5ece340094528ff6">IsSupportFormat</a>(std::string_view str, <span class="keywordtype">bool</span> read)</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span>{</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keyword">constexpr</span> std::array&lt;std::string_view, 8&gt; ARRAY_READ = {</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="stringliteral">&quot;jpg&quot;</span>, <span class="stringliteral">&quot;png&quot;</span>, <span class="stringliteral">&quot;tga&quot;</span>, <span class="stringliteral">&quot;bmp&quot;</span>, <span class="stringliteral">&quot;psd&quot;</span>, <span class="stringliteral">&quot;gif&quot;</span>, <span class="stringliteral">&quot;hdr&quot;</span>, <span class="stringliteral">&quot;pic&quot;</span></div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> };</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="keyword">constexpr</span> std::array&lt;std::string_view, 3&gt; ARRAY_WRITE = {</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="stringliteral">&quot;png&quot;</span>, <span class="stringliteral">&quot;tag&quot;</span>, <span class="stringliteral">&quot;bmp&quot;</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> };</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <span class="keywordflow">return</span> read ? <a class="code hl_function" href="namespacedl_1_1_any.html#aade322b75b02d876efc8f7ab70fdb2b2">Any::Equal</a>(ARRAY_READ, str) : <a class="code hl_function" href="namespacedl_1_1_any.html#aade322b75b02d876efc8f7ab70fdb2b2">Any::Equal</a>(ARRAY_WRITE, str);</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span>}</div>
</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span><span class="comment">// 不读取psd</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="namespacedl_1_1_img.html#ab63d0ee77f71e56c8da9ecf18075279c"> 90</a></span><span class="keyword">constexpr</span> std::string_view <a class="code hl_variable" href="namespacedl_1_1_img.html#ab63d0ee77f71e56c8da9ecf18075279c">REGEX_FORMAT</a> = <span class="stringliteral">&quot;.(jpg|png|tag|bmp|gif|hdr|pic)$&quot;</span>;</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="namespacedl_1_1_img.html#a3673a3093cf1a2f138d8965e485334d9"> 91</a></span><span class="keyword">constexpr</span> std::string_view <a class="code hl_variable" href="namespacedl_1_1_img.html#a3673a3093cf1a2f138d8965e485334d9">REGEX_FORMAT_CONFIG</a> = <span class="stringliteral">&quot;.(jpg|png|tag|bmp|gif|hdr|pic|json|txt)$&quot;</span>;</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> </div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="namespacedl_1_1_img.html#a3c57e7e4d67fc98725dbd8ac70e9fbac"> 98</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl_1_1_img.html#a3c57e7e4d67fc98725dbd8ac70e9fbac">CalcLeastRect</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a>* img, <a class="code hl_typedef" href="namespacedl.html#ac630b67756cfd3694b7885c5958e52a7">RectU</a>&amp; rect);</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span></div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="namespacedl_1_1_img.html#ab29ed4498e2aa2c166f1c0c88af07355"> 105</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="namespacedl_1_1_img.html#ab29ed4498e2aa2c166f1c0c88af07355">IsHaveTranslucent</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a>* img, <span class="keyword">const</span> <a class="code hl_typedef" href="namespacedl.html#ac630b67756cfd3694b7885c5958e52a7">RectU</a>&amp; rect);</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span></div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"><a class="line" href="namespacedl_1_1_img.html#adcd590956700cca9c41ae112a7e5e851"> 115</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl_1_1_img.html#adcd590956700cca9c41ae112a7e5e851">AddImageRect</a>(<a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a>* img_tar, <span class="keyword">const</span> <a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a>* img_src, <span class="keyword">const</span> <a class="code hl_typedef" href="namespacedl.html#ac630b67756cfd3694b7885c5958e52a7">RectU</a>&amp; rect, <span class="keyword">const</span> <a class="code hl_typedef" href="namespacedl.html#a6347394cca146fd6b8fedf1d3545de59">PointU</a>&amp; tar_xy);</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span></div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"><a class="line" href="namespacedl_1_1_img.html#af2884e9722f4a6f3ce54d88e1b6b9fa6"> 120</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl_1_1_img.html#af2884e9722f4a6f3ce54d88e1b6b9fa6">SetAlphaZero</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a>* img);</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span></div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="namespacedl_1_1_img.html#abd234823220c5b89b09dfd2f552a8b2d"> 127</a></span><a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a>* <a class="code hl_function" href="namespacedl_1_1_img.html#abd234823220c5b89b09dfd2f552a8b2d">ResizeImage</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a>* img, <span class="keyword">const</span> <a class="code hl_typedef" href="namespacedl.html#af4b025efbd5dae0045cce4cbc9546416">Size</a>&amp; size);</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"><a class="line" href="namespacedl_1_1_img.html#a553586262f2f3191359a85d1aa96ac84"> 129</a></span><a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a>* <a class="code hl_function" href="namespacedl_1_1_img.html#abd234823220c5b89b09dfd2f552a8b2d">ResizeImage</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a>* img, <a class="code hl_typedef" href="namespacedl.html#a2deb3e79723ed0c188c47443a48744b7">Float</a> scale);</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> </div>
<div class="foldopen" id="foldopen00131" data-start="{" data-end="};">
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"><a class="line" href="namespacedl_1_1_img.html#adc377cb0ff3212e35fbdfeb9b2135a9c"> 131</a></span><span class="keyword">enum class</span> <a class="code hl_enumeration" href="namespacedl_1_1_img.html#adc377cb0ff3212e35fbdfeb9b2135a9c">ExtendMode</a></div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span>{</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"><a class="line" href="namespacedl_1_1_img.html#adc377cb0ff3212e35fbdfeb9b2135a9ca529e9e0beb5f85d1f132917c1a09860c"> 133</a></span> <a class="code hl_enumvalue" href="namespacedl_1_1_img.html#adc377cb0ff3212e35fbdfeb9b2135a9ca529e9e0beb5f85d1f132917c1a09860c">ZERO</a>, <span class="comment">// 填充0</span></div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"><a class="line" href="namespacedl_1_1_img.html#adc377cb0ff3212e35fbdfeb9b2135a9cae8606d021da140a92c7eba8d9b8af84f"> 134</a></span> <a class="code hl_enumvalue" href="namespacedl_1_1_img.html#adc377cb0ff3212e35fbdfeb9b2135a9cae8606d021da140a92c7eba8d9b8af84f">COPY</a>, <span class="comment">// 复制边缘颜色</span></div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span>};</div>
</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span></div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"><a class="line" href="namespacedl_1_1_img.html#a4e615f518d2d96d382d344fa3d2b56c7"> 141</a></span><a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a>* <a class="code hl_function" href="namespacedl_1_1_img.html#a4e615f518d2d96d382d344fa3d2b56c7">Extend</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a>* img, <span class="keywordtype">unsigned</span> i, <a class="code hl_enumeration" href="namespacedl_1_1_img.html#adc377cb0ff3212e35fbdfeb9b2135a9c">ExtendMode</a> mode = <a class="code hl_enumvalue" href="namespacedl_1_1_img.html#adc377cb0ff3212e35fbdfeb9b2135a9ca529e9e0beb5f85d1f132917c1a09860c">ExtendMode::ZERO</a>);</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span></div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"><a class="line" href="namespacedl_1_1_img.html#afed846b34f08fe6367280bdd9c2a646f"> 148</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespacedl_1_1_img.html#afed846b34f08fe6367280bdd9c2a646f">BuildBorder</a>(<a class="code hl_typedef" href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">Image</a>* img, <span class="keywordtype">unsigned</span> i);</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span>}</div>
</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> </div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span>}</div>
<div class="ttc" id="aclassdl_1_1_vector2_html"><div class="ttname"><a href="classdl_1_1_vector2.html">dl::Vector2</a></div><div class="ttdoc">2维vector</div><div class="ttdef"><b>定义</b> <a href="dl__vector2_8h_source.html#l00030">dl_vector2.h:31</a></div></div>
<div class="ttc" id="adl__buffer_8h_html"><div class="ttname"><a href="dl__buffer_8h.html">dl_buffer.h</a></div><div class="ttdoc">表示一段内存</div></div>
<div class="ttc" id="adl__range__any_8h_html"><div class="ttname"><a href="dl__range__any_8h.html">dl_range_any.h</a></div><div class="ttdoc">范围操作 任一满足条件</div></div>
<div class="ttc" id="adl__type_8h_html"><div class="ttname"><a href="dl__type_8h.html">dl_type.h</a></div><div class="ttdoc">通用类型</div></div>
<div class="ttc" id="adl__vector2_8h_html"><div class="ttname"><a href="dl__vector2_8h.html">dl_vector2.h</a></div><div class="ttdoc">2维vector</div></div>
<div class="ttc" id="anamespacedl_1_1_any_html_aade322b75b02d876efc8f7ab70fdb2b2"><div class="ttname"><a href="namespacedl_1_1_any.html#aade322b75b02d876efc8f7ab70fdb2b2">dl::Any::Equal</a></div><div class="ttdeci">bool Equal(const C &amp;container, const V &amp;v)</div><div class="ttdoc">判断容器任意元素等于某值</div><div class="ttdef"><b>定义</b> <a href="dl__range__any_8h_source.html#l00024">dl_range_any.h:24</a></div></div>
<div class="ttc" id="anamespacedl_1_1_img_html"><div class="ttname"><a href="namespacedl_1_1_img.html">dl::Img</a></div><div class="ttdoc">图像操作</div><div class="ttdef"><b>定义</b> <a href="#l00070">dl_image.h:71</a></div></div>
<div class="ttc" id="anamespacedl_1_1_img_html_a3673a3093cf1a2f138d8965e485334d9"><div class="ttname"><a href="namespacedl_1_1_img.html#a3673a3093cf1a2f138d8965e485334d9">dl::Img::REGEX_FORMAT_CONFIG</a></div><div class="ttdeci">constexpr std::string_view REGEX_FORMAT_CONFIG</div><div class="ttdef"><b>定义</b> <a href="#l00091">dl_image.h:91</a></div></div>
<div class="ttc" id="anamespacedl_1_1_img_html_a3c57e7e4d67fc98725dbd8ac70e9fbac"><div class="ttname"><a href="namespacedl_1_1_img.html#a3c57e7e4d67fc98725dbd8ac70e9fbac">dl::Img::CalcLeastRect</a></div><div class="ttdeci">void CalcLeastRect(const Image *img, RectU &amp;rect)</div><div class="ttdoc">计算返回最小包围盒(去除边缘的全透明像素)</div></div>
<div class="ttc" id="anamespacedl_1_1_img_html_a4e615f518d2d96d382d344fa3d2b56c7"><div class="ttname"><a href="namespacedl_1_1_img.html#a4e615f518d2d96d382d344fa3d2b56c7">dl::Img::Extend</a></div><div class="ttdeci">Image * Extend(const Image *img, unsigned i, ExtendMode mode=ExtendMode::ZERO)</div><div class="ttdoc">拓展图像边缘像素</div></div>
<div class="ttc" id="anamespacedl_1_1_img_html_a70e0e680b145bd9c5ece340094528ff6"><div class="ttname"><a href="namespacedl_1_1_img.html#a70e0e680b145bd9c5ece340094528ff6">dl::Img::IsSupportFormat</a></div><div class="ttdeci">bool IsSupportFormat(std::string_view str, bool read)</div><div class="ttdoc">是否支持的格式</div><div class="ttdef"><b>定义</b> <a href="#l00078">dl_image.h:78</a></div></div>
<div class="ttc" id="anamespacedl_1_1_img_html_ab29ed4498e2aa2c166f1c0c88af07355"><div class="ttname"><a href="namespacedl_1_1_img.html#ab29ed4498e2aa2c166f1c0c88af07355">dl::Img::IsHaveTranslucent</a></div><div class="ttdeci">bool IsHaveTranslucent(const Image *img, const RectU &amp;rect)</div><div class="ttdoc">返回是否包含非透明颜色</div></div>
<div class="ttc" id="anamespacedl_1_1_img_html_ab63d0ee77f71e56c8da9ecf18075279c"><div class="ttname"><a href="namespacedl_1_1_img.html#ab63d0ee77f71e56c8da9ecf18075279c">dl::Img::REGEX_FORMAT</a></div><div class="ttdeci">constexpr std::string_view REGEX_FORMAT</div><div class="ttdef"><b>定义</b> <a href="#l00090">dl_image.h:90</a></div></div>
<div class="ttc" id="anamespacedl_1_1_img_html_abd234823220c5b89b09dfd2f552a8b2d"><div class="ttname"><a href="namespacedl_1_1_img.html#abd234823220c5b89b09dfd2f552a8b2d">dl::Img::ResizeImage</a></div><div class="ttdeci">Image * ResizeImage(const Image *img, const Size &amp;size)</div><div class="ttdoc">缩放图像</div></div>
<div class="ttc" id="anamespacedl_1_1_img_html_adc377cb0ff3212e35fbdfeb9b2135a9c"><div class="ttname"><a href="namespacedl_1_1_img.html#adc377cb0ff3212e35fbdfeb9b2135a9c">dl::Img::ExtendMode</a></div><div class="ttdeci">ExtendMode</div><div class="ttdef"><b>定义</b> <a href="#l00131">dl_image.h:132</a></div></div>
<div class="ttc" id="anamespacedl_1_1_img_html_adc377cb0ff3212e35fbdfeb9b2135a9ca529e9e0beb5f85d1f132917c1a09860c"><div class="ttname"><a href="namespacedl_1_1_img.html#adc377cb0ff3212e35fbdfeb9b2135a9ca529e9e0beb5f85d1f132917c1a09860c">dl::Img::ExtendMode::ZERO</a></div><div class="ttdeci">@ ZERO</div><div class="ttdef"><b>定义</b> <a href="#l00133">dl_image.h:133</a></div></div>
<div class="ttc" id="anamespacedl_1_1_img_html_adc377cb0ff3212e35fbdfeb9b2135a9cae8606d021da140a92c7eba8d9b8af84f"><div class="ttname"><a href="namespacedl_1_1_img.html#adc377cb0ff3212e35fbdfeb9b2135a9cae8606d021da140a92c7eba8d9b8af84f">dl::Img::ExtendMode::COPY</a></div><div class="ttdeci">@ COPY</div><div class="ttdef"><b>定义</b> <a href="#l00134">dl_image.h:134</a></div></div>
<div class="ttc" id="anamespacedl_1_1_img_html_adcd590956700cca9c41ae112a7e5e851"><div class="ttname"><a href="namespacedl_1_1_img.html#adcd590956700cca9c41ae112a7e5e851">dl::Img::AddImageRect</a></div><div class="ttdeci">void AddImageRect(Image *img_tar, const Image *img_src, const RectU &amp;rect, const PointU &amp;tar_xy)</div><div class="ttdoc">添加另一个图像的部分到自己的位置上</div></div>
<div class="ttc" id="anamespacedl_1_1_img_html_af2884e9722f4a6f3ce54d88e1b6b9fa6"><div class="ttname"><a href="namespacedl_1_1_img.html#af2884e9722f4a6f3ce54d88e1b6b9fa6">dl::Img::SetAlphaZero</a></div><div class="ttdeci">void SetAlphaZero(const Image *img)</div><div class="ttdoc">设置透明色颜色为0,针对于某些颜色透明,但是其他通道非0</div></div>
<div class="ttc" id="anamespacedl_1_1_img_html_afed846b34f08fe6367280bdd9c2a646f"><div class="ttname"><a href="namespacedl_1_1_img.html#afed846b34f08fe6367280bdd9c2a646f">dl::Img::BuildBorder</a></div><div class="ttdeci">void BuildBorder(Image *img, unsigned i)</div><div class="ttdoc">填充边缘像素按最近的像素</div></div>
<div class="ttc" id="anamespacedl_html"><div class="ttname"><a href="namespacedl.html">dl</a></div><div class="ttdef"><b>定义</b> <a href="dl__array_8h_source.html#l00020">dl_array.h:21</a></div></div>
<div class="ttc" id="anamespacedl_html_a0e44c1b516814389464e02ec1e842e7f"><div class="ttname"><a href="namespacedl.html#a0e44c1b516814389464e02ec1e842e7f">dl::BufferView</a></div><div class="ttdeci">std::span&lt; std::byte &gt; BufferView</div><div class="ttdef"><b>定义</b> <a href="dl__buffer_8h_source.html#l00023">dl_buffer.h:23</a></div></div>
<div class="ttc" id="anamespacedl_html_a2deb3e79723ed0c188c47443a48744b7"><div class="ttname"><a href="namespacedl.html#a2deb3e79723ed0c188c47443a48744b7">dl::Float</a></div><div class="ttdeci">float Float</div><div class="ttdef"><b>定义</b> <a href="dl__type__def_8h_source.html#l00038">dl_type_def.h:38</a></div></div>
<div class="ttc" id="anamespacedl_html_a37d044d8b805238a8dbe95d7676549ee"><div class="ttname"><a href="namespacedl.html#a37d044d8b805238a8dbe95d7676549ee">dl::saveImage</a></div><div class="ttdeci">bool saveImage(const Image *img, std::string_view path_name)</div><div class="ttdoc">保存到图像</div></div>
<div class="ttc" id="anamespacedl_html_a6347394cca146fd6b8fedf1d3545de59"><div class="ttname"><a href="namespacedl.html#a6347394cca146fd6b8fedf1d3545de59">dl::PointU</a></div><div class="ttdeci">Point2U PointU</div><div class="ttdef"><b>定义</b> <a href="dl__type__def_8h_source.html#l00034">dl_type_def.h:34</a></div></div>
<div class="ttc" id="anamespacedl_html_a710ab1636ef5fba0577cc748b365040a"><div class="ttname"><a href="namespacedl.html#a710ab1636ef5fba0577cc748b365040a">dl::createImageSvg</a></div><div class="ttdeci">Image * createImageSvg(std::string_view path_name, const Size &amp;size)</div><div class="ttdoc">创建图像 从svg</div></div>
<div class="ttc" id="anamespacedl_html_a98bc2c68beac9a381c6ba72d375105ef"><div class="ttname"><a href="namespacedl.html#a98bc2c68beac9a381c6ba72d375105ef">dl::createImageWebp</a></div><div class="ttdeci">Image * createImageWebp(std::string_view path_name)</div><div class="ttdoc">创建图像 从webp</div></div>
<div class="ttc" id="anamespacedl_html_aae2169d4732e4c62499669b887d759bc"><div class="ttname"><a href="namespacedl.html#aae2169d4732e4c62499669b887d759bc">dl::createImage</a></div><div class="ttdeci">Image * createImage(const Size &amp;size, const Color &amp;col)</div><div class="ttdoc">创建图像</div></div>
<div class="ttc" id="anamespacedl_html_ab0aa26817739678b786d66b6c9f50ae7"><div class="ttname"><a href="namespacedl.html#ab0aa26817739678b786d66b6c9f50ae7">dl::Color</a></div><div class="ttdeci">Array&lt; float, 4 &gt; Color</div><div class="ttdef"><b>定义</b> <a href="dl__type__def_8h_source.html#l00059">dl_type_def.h:59</a></div></div>
<div class="ttc" id="anamespacedl_html_ab4acc6e28a53b5034ae7786d915c2b1e"><div class="ttname"><a href="namespacedl.html#ab4acc6e28a53b5034ae7786d915c2b1e">dl::Image</a></div><div class="ttdeci">Vector2&lt; uint32_t, unsigned &gt; Image</div><div class="ttdef"><b>定义</b> <a href="#l00028">dl_image.h:28</a></div></div>
<div class="ttc" id="anamespacedl_html_ac630b67756cfd3694b7885c5958e52a7"><div class="ttname"><a href="namespacedl.html#ac630b67756cfd3694b7885c5958e52a7">dl::RectU</a></div><div class="ttdeci">Point4U RectU</div><div class="ttdef"><b>定义</b> <a href="dl__type__def_8h_source.html#l00051">dl_type_def.h:51</a></div></div>
<div class="ttc" id="anamespacedl_html_af4b025efbd5dae0045cce4cbc9546416"><div class="ttname"><a href="namespacedl.html#af4b025efbd5dae0045cce4cbc9546416">dl::Size</a></div><div class="ttdeci">PointU Size</div><div class="ttdef"><b>定义</b> <a href="dl__type__def_8h_source.html#l00035">dl_type_def.h:35</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.1
</small></address>
</div><!-- doc-content -->
</body>
</html>