<html><head><title>EncodeImage</title></head><body bgcolor="#FFFFFF" link="#207BC3" vlink="#003B83" alink="#003B83"><font face="Arial" size="2"><p align="center"><b><font size="4">EncodeImage()</font></b></p><p><b>Syntax</b></p><blockquote>URL$ = <font color="#207BC3"><b>EncodeImage</b></font>(#Image [, ImagePlugin [, Flags]])</blockquote></blockquote><b>Description</b><br><blockquote>Encode the specified canvas image into an image URL.</blockquote><p><b>Parameters</b></p><blockquote><style type="text/css">table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }</style><table width="90%" class="parameters"><tr><td width="10%"><i>#Image</i></td><td width="90%">The image to encode.</td></tr><tr><td><i>ImagePlugin (optional)</i></td><td>The format to encode the image in. This can be one of the following values:<pre><font face="Courier New, Courier, mono"size="2"> <font color="#924B72">#PB_ImagePlugin_JPEG</font>: encode the image in JPEG<font color="#924B72">#PB_ImagePlugin_PNG</font> : encode the image in PNG</font></pre></td></tr><tr><td><i>Flags (optional)</i></td><td>Parameters for the image plug-in. For now, only the quality setting is supported:a number from 0 (worse quality) to 10 (maximum quality). Only the JPEG plugins currently support it (defaultquality is set to '7' if no flags are specified).</td></tr><tr><td><i>Depth (optional)</i></td><td>The depth in which to save the image. Valid values are 24 and 32.The default value is the original image depth.</td></tr></table></blockquote><p><b>Return value</b></p><blockquote>Returns the URL containing the encoded image, or an empty string if the encoding has failed.</blockquote><p><b>See Also</b></p><blockquote><a href="loadimage.html">LoadImage()</a></Blockquote><center><- <a href=createimage.html>CreateImage()</a> - <a href="index.html">Image Index</a> - <a href="exportimage.html">ExportImage()</a> -><br><br></body></html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。