Location: PHPKode > projects > Moc10 PHP Library > docs/api-docs/elementindex_Moc10_Image.html
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html>
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title></title>
			<link rel="stylesheet" href="media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
						<a name="top"></a>
<h2>[Moc10_Image] element index</h2>
	<h3>Package indexes</h3>
	<ul>
				<li><a href="elementindex_Moc10_Autoloader.html">Moc10_Autoloader</a></li>
					<li><a href="elementindex_Moc10_Cookie.html">Moc10_Cookie</a></li>
					<li><a href="elementindex_Moc10_Curl.html">Moc10_Curl</a></li>
					<li><a href="elementindex_Moc10_Db.html">Moc10_Db</a></li>
					<li><a href="elementindex_Moc10_Dom.html">Moc10_Dom</a></li>
					<li><a href="elementindex_Moc10_Feed.html">Moc10_Feed</a></li>
					<li><a href="elementindex_Moc10_File.html">Moc10_File</a></li>
					<li><a href="elementindex_Moc10_Form.html">Moc10_Form</a></li>
					<li><a href="elementindex_Moc10_Ftp.html">Moc10_Ftp</a></li>
							<li><a href="elementindex_Moc10_Language.html">Moc10_Language</a></li>
					<li><a href="elementindex_Moc10_Mail.html">Moc10_Mail</a></li>
					<li><a href="elementindex_Moc10_Pdf.html">Moc10_Pdf</a></li>
					<li><a href="elementindex_Moc10_Record.html">Moc10_Record</a></li>
					<li><a href="elementindex_Moc10_Session.html">Moc10_Session</a></li>
					<li><a href="elementindex_Moc10_String.html">Moc10_String</a></li>
			</ul>
<a href="elementindex.html">All elements</a>
<br />
<div class="index-letter-menu">
	<a class="index-letter" href="elementindex_Moc10_Image.html#c">c</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#g">g</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#h">h</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#i">i</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#m">m</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#r">r</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#s">s</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#t">t</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#u">u</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#w">w</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#_">_</a>
</div>

	<a name="_"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">_</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="var-title">$_allowed</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html#var$_allowed">Moc10_Image::$_allowed</a> in Image.php</div>
							<div class="index-item-description">Array of allowed file types.</div>
					</dd>
			<dt class="field">
						<span class="var-title">$_lang</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html#var$_lang">Moc10_Image::$_lang</a> in Image.php</div>
							<div class="index-item-description">Language object</div>
					</dd>
			<dt class="field">
						<span class="var-title">$_max</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image_Upload.html#var$_max">Moc10_Image_Upload::$_max</a> in Upload.php</div>
							<div class="index-item-description">Set the maximum allowed image file size. Set to null to allow any size.</div>
					</dd>
			<dt class="field">
						<span class="var-title">$_quality</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html#var$_quality">Moc10_Image::$_quality</a> in Image.php</div>
							<div class="index-item-description">Image quality</div>
					</dd>
			<dt class="field">
						<span class="method-title">_createImage</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html#method_createImage">Moc10_Image::_createImage()</a> in Image.php</div>
							<div class="index-item-description">Create and save the new image file in the correct format.</div>
					</dd>
			<dt class="field">
						<span class="method-title">_createNew</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html#method_createNew">Moc10_Image::_createNew()</a> in Image.php</div>
							<div class="index-item-description">Create a blank image based on the current image type of the image object.</div>
					</dd>
			<dt class="field">
						<span class="method-title">_save</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html#method_save">Moc10_Image::_save()</a> in Image.php</div>
							<div class="index-item-description">Save the image object using with any newly defined properties.</div>
					</dd>
			<dt class="field">
						<span class="method-title">_setQuality</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html#method_setQuality">Moc10_Image::_setQuality()</a> in Image.php</div>
							<div class="index-item-description">Set the image quality based on the type of image.</div>
					</dd>
			<dt class="field">
						<span class="method-title">__construct</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image_Upload.html#method__construct">Moc10_Image_Upload::__construct()</a> in Upload.php</div>
							<div class="index-item-description">Constructor</div>
					</dd>
			<dt class="field">
						<span class="method-title">__construct</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html#method__construct">Moc10_Image::__construct()</a> in Image.php</div>
							<div class="index-item-description">Constructor</div>
					</dd>
		</dl>
	<a name="c"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">c</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="var-title">$channels</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html#var$channels">Moc10_Image::$channels</a> in Image.php</div>
							<div class="index-item-description">Image channels</div>
					</dd>
			<dt class="field">
						<span class="method-title">colorTotal</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html#methodcolorTotal">Moc10_Image::colorTotal()</a> in Image.php</div>
							<div class="index-item-description">Return the number of colors in the palette of indexed images. Returns 0 for true color images.</div>
					</dd>
			<dt class="field">
						<span class="method-title">convert</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html#methodconvert">Moc10_Image::convert()</a> in Image.php</div>
							<div class="index-item-description">Convert the image object to the new specified image type.</div>
					</dd>
			<dt class="field">
						<span class="method-title">crop</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html#methodcrop">Moc10_Image::crop()</a> in Image.php</div>
							<div class="index-item-description">Crop the image object to a square image whose dimensions are based on the value of the $px argument.</div>
					</dd>
		</dl>
	<a name="g"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">g</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">getColors</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html#methodgetColors">Moc10_Image::getColors()</a> in Image.php</div>
							<div class="index-item-description">Return all of the colors in the palette in an array format, omitting any repeats. It is strongly advised that this method only be used  for smaller image files, preferably with small palettes, as any large images with many colors will cause this method to run slowly.</div>
					</dd>
		</dl>
	<a name="h"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">h</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="var-title">$height</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html#var$height">Moc10_Image::$height</a> in Image.php</div>
							<div class="index-item-description">Image height</div>
					</dd>
		</dl>
	<a name="i"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">i</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="include-title">Image.php</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/_Image.php.html">Image.php</a> in Image.php</div>
					</dd>
		</dl>
	<a name="m"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">m</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						Moc10_Image
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html">Moc10_Image</a> in Image.php</div>
							<div class="index-item-description">Moc10_Image</div>
					</dd>
			<dt class="field">
						Moc10_Image_Upload
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image_Upload.html">Moc10_Image_Upload</a> in Upload.php</div>
							<div class="index-item-description">Moc10_Image_Upload</div>
					</dd>
		</dl>
	<a name="r"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">r</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">resize</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html#methodresize">Moc10_Image::resize()</a> in Image.php</div>
							<div class="index-item-description">Resize the image object, allowing for the largest dimension to be scaled to the value of the $px argument.</div>
					</dd>
		</dl>
	<a name="s"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">s</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">scale</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html#methodscale">Moc10_Image::scale()</a> in Image.php</div>
							<div class="index-item-description">Scale the image object, allowing for the dimensions to be scaled proportionally to the value of the $scl argument.</div>
					</dd>
		</dl>
	<a name="t"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">t</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">text</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html#methodtext">Moc10_Image::text()</a> in Image.php</div>
							<div class="index-item-description">Create text within the an image object and output it. A true-type font file is required for the font argument. The size,</div>
					</dd>
		</dl>
	<a name="u"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">u</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="include-title">Upload.php</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/_Image---Upload.php.html">Upload.php</a> in Upload.php</div>
					</dd>
		</dl>
	<a name="w"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">w</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="var-title">$width</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_Image/Moc10_Image.html#var$width">Moc10_Image::$width</a> in Image.php</div>
							<div class="index-item-description">Image width</div>
					</dd>
		</dl>

<div class="index-letter-menu">
	<a class="index-letter" href="elementindex_Moc10_Image.html#c">c</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#g">g</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#h">h</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#i">i</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#m">m</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#r">r</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#s">s</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#t">t</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#u">u</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#w">w</a>
	<a class="index-letter" href="elementindex_Moc10_Image.html#_">_</a>
</div>	</body>
</html>
Return current item: Moc10 PHP Library