⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.imagick-adaptiveresizeimage.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Adaptively resize image with data dependent triangulation</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.imagick-adaptiveblurimage.html">Imagick::adaptiveBlurImage</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.imagick-adaptivesharpenimage.html">Imagick::adaptiveSharpenImage</a></div> <div class="up"><a href="class.imagick.html">The Imagick class</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.imagick-adaptiveresizeimage" class="refentry"> <div class="refnamediv">  <h1 class="refname">Imagick::adaptiveResizeImage</h1>  <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">Imagick::adaptiveResizeImage</span> &mdash; <span class="dc-title">Adaptively resize image with data dependent triangulation</span></p> </div> <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">bool</span> <span class="methodname"><b><b>Imagick::adaptiveResizeImage</b></b></span>    ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$columns</tt></span>   , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$rows</tt></span>   [, <span class="methodparam"><span class="type">bool</span> <tt class="parameter">$fit</tt></span>  ] )</div>  <p class="para rdfs-comment">   Adaptively resize image with data-dependent triangulation. Avoids   blurring across sharp color changes. Most useful when used to shrink   images slightly to a slightly smaller &quot;web size&quot;; may not look good   when a full-sized image is adaptively resized to a thumbnail.  </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">columns</tt></i></span>     <dd>      <p class="para">       The number of columns in the scaled image.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">rows</tt></i></span>     <dd>      <p class="para">       The number of rows in the scaled image.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">fit</tt></i></span>     <dd>      <p class="para">      </p>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns <b><tt>TRUE</tt></b> on success.  </p> </div> <div class="refsect1 errors">  <h3 class="title">Errors/Exceptions</h3>  <p class="para">   Throws ImagickException on error.  </p> </div> <div class="refsect1 changelog">  <h3 class="title">ChangeLog</h3>  <p class="para">   <table class="informaltable">    <colgroup>     <thead valign="middle">      <tr valign="middle">       <th colspan="1">Version</th>       <th colspan="1">Description</th>      </tr>     </thead>     <tbody valign="middle" class="tbody">      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">2.1.0</td>       <td colspan="1" rowspan="1" align="left">       Added optional fit parameter. This method now supports proportional scaling.       Pass zero as either parameter for proportional scaling.         </td>      </tr>     </tbody>    </colgroup>   </table>  </p> </div> <div class="refsect1 examples">  <h3 class="title">Examples</h3>  <p class="para">   <div class="example">    <p><b>Example #1 Using <b>Imagick::adaptiveResizeImage()</b></b></p>    <div class="example-contents"><p>     Resize an image to a standard size for the web.  This method works best     when resizing to a size only slightly smaller than the previous image     size.    </p></div>    <div class="example-contents"><div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />header</span><span style="color: #007700">(</span><span style="color: #DD0000">'Content-type:&nbsp;image/jpeg'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$image&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Imagick</span><span style="color: #007700">(</span><span style="color: #DD0000">'image.jpg'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$image</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">adaptiveResizeImage</span><span style="color: #007700">(</span><span style="color: #0000BB">1024</span><span style="color: #007700">,</span><span style="color: #0000BB">768</span><span style="color: #007700">);<br /><br />echo&nbsp;</span><span style="color: #0000BB">$image</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>    </div>   </div>  </p> </div> <div class="refsect1 seealso">  <h3 class="title">See Also</h3>  <p class="para">   <ul class="simplelist">    <li class="member"><a href="function.imagick-chopimage.html" class="function" rel="rdfs-seeAlso">Imagick::chopImage()</a></li>    <li class="member"><a href="function.imagick-cropimage.html" class="function" rel="rdfs-seeAlso">Imagick::cropImage()</a></li>    <li class="member"><a href="function.imagick-magnifyimage.html" class="function" rel="rdfs-seeAlso">Imagick::magnifyImage()</a></li>    <li class="member"><a href="function.imagick-minifyimage.html" class="function" rel="rdfs-seeAlso">Imagick::minifyImage()</a></li>    <li class="member"><a href="function.imagick-resizeimage.html" class="function" rel="rdfs-seeAlso">Imagick::resizeImage()</a></li>    <li class="member"><a href="function.imagick-scaleimage.html" class="function" rel="rdfs-seeAlso">Imagick::scaleImage()</a></li>    <li class="member"><a href="function.imagick-shaveimage.html" class="function" rel="rdfs-seeAlso">Imagick::shaveImage()</a></li>    <li class="member"><a href="function.imagick-thumbnailimage.html" class="function" rel="rdfs-seeAlso">Imagick::thumbnailImage()</a></li>    <li class="member"><a href="function.imagick-trimimage.html" class="function" rel="rdfs-seeAlso">Imagick::trimImage()</a></li>   </ul>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.imagick-adaptiveblurimage.html">Imagick::adaptiveBlurImage</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.imagick-adaptivesharpenimage.html">Imagick::adaptiveSharpenImage</a></div> <div class="up"><a href="class.imagick.html">The Imagick class</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -