Location: PHPKode > scripts > Image.class > image-class-0-1/Image.doc.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 xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Image</title>
<style type="text/css">
a { color: #336699; text-decoration: none; }
a:hover { color: #6699CC; text-decoration: underline; }
a:active { color: #6699CC; text-decoration: underline; }

body { background : #FFFFFF; }
body, table { font-family: Georgia, Times New Roman, Times, serif; font-size: 10pt }
p, li { line-height: 140% }
a img { border: 0px; }
dd { margin-left: 0px; padding-left: 1em; }

/* Page layout/boxes */

.info-box {}
.info-box-title { margin: 1em 0em 0em 0em; padding: .25em; font-weight: normal; font-size: 14pt; border: 2px solid #999999; background-color: #CCCCFF }
.info-box-body { border: 1px solid #999999; padding: .5em; }
.nav-bar { font-size: 8pt; white-space: nowrap; text-align: right; padding: .2em; margin: 0em 0em 1em 0em; }

.oddrow { background-color: #F8F8F8; border: 1px solid #AAAAAA; padding: .5em; margin-bottom: 1em}
.evenrow { border: 1px solid #AAAAAA; padding: .5em; margin-bottom: 1em}

.page-body { max-width: 800px; margin: auto; }
.tree dl { margin: 0px }

/* Index formatting classes */

.index-item-body { margin-top: .5em; margin-bottom: .5em}
.index-item-description { margin-top: .25em }
.index-item-details { font-weight: normal; font-style: italic; font-size: 8pt }
.index-letter-section { background-color: #EEEEEE; border: 1px dotted #999999; padding: .5em; margin-bottom: 1em}
.index-letter-title { font-size: 12pt; font-weight: bold }
.index-letter-menu { text-align: center; margin: 1em }
.index-letter { font-size: 12pt }

/* Docbook classes */

.description {}
.short-description { font-weight: bold; color: #666666; }
.tags {	padding-left: 0em; margin-left: 3em; color: #666666; list-style-type: square; }
.parameters {	padding-left: 0em; margin-left: 3em; font-style: italic; list-style-type: square; }
.redefinitions { font-size: 8pt; padding-left: 0em; margin-left: 2em; }
.package {  }
.package-title { font-weight: bold; font-size: 14pt; border-bottom: 1px solid black }
.package-details { font-size: 85%; }
.sub-package { font-weight: bold; font-size: 120% }
.tutorial { border-width: thin; border-color: #0066ff }
.tutorial-nav-box { width: 100%; border: 1px solid #999999; background-color: #F8F8F8; }
.nav-button-disabled { color: #999999; }
.nav-button:active,
.nav-button:focus,
.nav-button:hover { background-color: #DDDDDD; outline: 1px solid #999999; text-decoration: none }
.folder-title { font-style: italic }

/* Generic formatting */

.field { font-weight: bold; }
.detail { font-size: 8pt; }
.notes { font-style: italic; font-size: 8pt; }
.separator { background-color: #999999; height: 2px; }
.warning {  color: #FF6600; }
.disabled { font-style: italic; color: #999999; }

/* Code elements */

.line-number {  }

.class-table { width: 100%; }
.class-table-header { border-bottom: 1px dotted #666666; text-align: left}
.class-name { color: #000000; font-weight: bold; }

.method-summary { padding-left: 1em; font-size: 8pt }
.method-header { }
.method-definition { margin-bottom: .3em }
.method-title { font-weight: bold; }
.method-name { font-weight: bold; }
.method-signature { font-size: 85%; color: #666666; margin: .5em 0em }
.method-result { font-style: italic; }

.var-summary { padding-left: 1em; font-size: 8pt; }
.var-header { }
.var-title { margin-bottom: .3em }
.var-type { font-style: italic; }
.var-name { font-weight: bold; }
.var-default {}
.var-description { font-weight: normal; color: #000000; }

.include-title {  }
.include-type { font-style: italic; }
.include-name { font-weight: bold; }

.const-title {  }
.const-name { font-weight: bold; }

/* Syntax highlighting */

.src-code {  border: 1px solid #336699; padding: 1em; background-color: #EEEEEE; }
.src-line {  font-family: 'Courier New', Courier, monospace; font-weight: normal; }

.src-comm { color: green; }
.src-id {  }
.src-inc { color: #0000FF; }
.src-key { color: #0000FF; }
.src-num { color: #CC0000; }
.src-str { color: #66cccc; }
.src-sym { font-weight: bold; }
.src-var { }

.src-php { font-weight: bold; }

.src-doc { color: #009999 }
.src-doc-close-template { color: #0000FF }
.src-doc-coretag { color: #0099FF; font-weight: bold }
.src-doc-inlinetag { color: #0099FF }
.src-doc-internal { color: #6699cc }
.src-doc-tag { color: #0080CC }
.src-doc-template { color: #0000FF }
.src-doc-type { font-style: italic }
.src-doc-var { font-style: italic }

.tute-tag { color: #009999 }
.tute-attribute-name { color: #0000FF }
.tute-attribute-value { color: #0099FF }
.tute-entity { font-weight: bold; }
.tute-comment { font-style: italic }
.tute-inline-tag { color: #636311; font-weight: bold }

/* tutorial */

.authors {  }
.author { font-style: italic; font-weight: bold }
.author-blurb { margin: .5em 0em .5em 2em; font-size: 85%; font-weight: normal; font-style: normal }
.example { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; }
*[class="example"] { line-height : 0.5em }
.listing { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; white-space: nowrap; }
*[class="listing"] { line-height : 0.5em }
.release-info { font-size: 85%; font-style: italic; margin: 1em 0em }
.ref-title-box {  }
.ref-title {  }
.ref-purpose { font-style: italic; color: #666666 }
.ref-synopsis {  }
.title { font-weight: bold; margin: 1em 0em 0em 0em; padding: .25em; border: 2px solid #999999; background-color: #CCCCFF  }
.cmd-synopsis { margin: 1em 0em }
.cmd-title { font-weight: bold }
.toc { margin-left: 2em; padding-left: 0em }


</style>
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">
<h2 class="class-name">Class Image</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)

					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Image( int $x, int $y, str $color )<br /></p>
<p class="description"><p>Image( int $x, int $y )<br />  Image( str $file_name )<br />  This class is a wrapper, around most function that are available in php to  manipulate images. I've this becouse I'm tired of all this mess I've made  writing script in which I need to manipulate images, and it's really annoying.</p></p>
		<p class="notes">
			Located in <a class="field" href="_Image.class.php.html">/Image.class.php</a> (line <span class="field">17</span>)
		</p>


		<pre></pre>

			</div>
</div>



	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							|
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)

								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$color" title="details" class="var-name">$color</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$mime_type" title="details" class="var-name">$mime_type</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$_height" title="details" class="var-name">$_height</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$_width" title="details" class="var-name">$_width</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)

				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">
			<div class="method-summary">

												<div class="method-definition">
											<span class="method-result">Image</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#__destruct" title="details" class="method-name">__destruct</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#addEllipse" title="details" class="method-name">addEllipse</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$cx</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$cy</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$width</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$height</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#addFilledEllipse" title="details" class="method-name">addFilledEllipse</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$cx</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$cy</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$width</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$height</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array|bool</span>
										<a href="#addText" title="details" class="method-name">addText</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$size</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$x</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$y</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$text</span>, [<span class="var-type">integer</span>&nbsp;<span class="var-name">$angle</span> = <span class="var-default">0</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">array|bool</span>
										<a href="#addTextWithBorder" title="details" class="method-name">addTextWithBorder</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$size</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$x</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$y</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$text</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$border_color</span>, [<span class="var-type">integer</span>&nbsp;<span class="var-name">$angle</span> = <span class="var-default">0</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#copy" title="details" class="method-name">copy</a>
											(<span class="var-type">resource|<a href="../default/Image.html">Image</a></span>&nbsp;<span class="var-name">$im</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$dst_x</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$dst_y</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$src_x</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$src_y</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$src_w</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$src_h</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#get" title="details" class="method-name">get</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#line" title="details" class="method-name">line</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$x1</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$y1</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$x2</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$y2</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#lineX" title="details" class="method-name">lineX</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$x</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#lineY" title="details" class="method-name">lineY</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$y</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#output" title="details" class="method-name">output</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$type</span> = <span class="var-default">'jpeg'</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span> = <span class="var-default">NULL</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$quality</span> = <span class="var-default">95</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#resize" title="details" class="method-name">resize</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$new_width</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$new_height</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#rgbToArray" title="details" class="method-name">rgbToArray</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$rgb</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#scale" title="details" class="method-name">scale</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$scale</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setColor" title="details" class="method-name">setColor</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$hex_color</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setFont" title="details" class="method-name">setFont</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#__toString" title="details" class="method-name">__toString</a>
										()
									</div>
								</div>
		</div>
	</div>

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)


										|
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)

					</div>
		<div class="info-box-body">
			<a name="var$color" id="$color"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$color</span>
			 = <span class="var-default"> 'ffffff'</span>			(line <span class="line-number">23</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>





</div>
<a name="var$mime_type" id="$mime_type"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$mime_type</span>
			 = <span class="var-default"> 0</span>			(line <span class="line-number">22</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>





</div>
<a name="var$_height" id="$_height"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$_height</span>
			 = <span class="var-default"> 0</span>			(line <span class="line-number">21</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>





</div>
<a name="var$_width" id="$_width"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$_width</span>
			 = <span class="var-default"> 0</span>			(line <span class="line-number">20</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>





</div>

		</div>
	</div>

	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)

		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">

	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">25</span>)
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>

	<div class="method-signature">
		<span class="method-result">Image</span>
		<span class="method-name">
			__construct
		</span>
				()
			</div>



	</div>
<a name="method__destruct" id="__destruct"><!-- --></a>
<div class="oddrow">

	<div class="method-header">
		<span class="method-title">Destructor __destruct</span> (line <span class="line-number">57</span>)
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>

	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			__destruct
		</span>
				()
			</div>



	</div>
<a name="methodaddEllipse" id="addEllipse"><!-- --></a>
<div class="evenrow">

	<div class="method-header">
		<span class="method-title">addEllipse</span> (line <span class="line-number">162</span>)
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Draws an ellipse with a centre on (x,y) width given width and height</p>
	<ul class="tags">
				<li><span class="field">return:</span> If the operation succeed</li>
				<li><span class="field">access:</span> public</li>
			</ul>

	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			addEllipse
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$cx</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$cy</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$width</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$height</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$cx</span><span class="var-description">: cx X coordinate of the center</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$cy</span><span class="var-description">: cy Y coordinate of the center</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$width</span><span class="var-description">: width Width of the ecllipse</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$height</span><span class="var-description">: height Height of the ecllipse</span>			</li>
				</ul>


	</div>
<a name="methodaddFilledEllipse" id="addFilledEllipse"><!-- --></a>
<div class="oddrow">

	<div class="method-header">
		<span class="method-title">addFilledEllipse</span> (line <span class="line-number">174</span>)
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Draws an ellipse with a centre on (x,y) width given width and height filled with color</p>
	<ul class="tags">
				<li><span class="field">return:</span> If the operation succeed</li>
				<li><span class="field">access:</span> public</li>
			</ul>

	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			addFilledEllipse
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$cx</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$cy</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$width</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$height</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$cx</span><span class="var-description">: cx X coordinate of the center</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$cy</span><span class="var-description">: cy Y coordinate of the center</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$width</span><span class="var-description">: width Width of the ecllipse</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$height</span><span class="var-description">: height Height of the ecllipse</span>			</li>
				</ul>


	</div>
<a name="methodaddText" id="addText"><!-- --></a>
<div class="evenrow">

	<div class="method-header">
		<span class="method-title">addText</span> (line <span class="line-number">106</span>)
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Adds text, the font name and color must be allready setted</p>
	<ul class="tags">
				<li><span class="field">return:</span> If operation succeed return 8 elements array with coordinates of corners or false on fail</li>
				<li><span class="field">access:</span> public</li>
			</ul>

	<div class="method-signature">
		<span class="method-result">array|bool</span>
		<span class="method-name">
			addText
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$size</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$x</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$y</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$text</span>, [<span class="var-type">integer</span>&nbsp;<span class="var-name">$angle</span> = <span class="var-default">0</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$size</span><span class="var-description">: Size of the font</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$x</span><span class="var-description">: X coordinate of text begining</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$y</span><span class="var-description">: Y coordinate of text begining</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$angle</span><span class="var-description">: An angle of tekst</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$text</span>			</li>
				</ul>


	</div>
<a name="methodaddTextWithBorder" id="addTextWithBorder"><!-- --></a>
<div class="oddrow">

	<div class="method-header">
		<span class="method-title">addTextWithBorder</span> (line <span class="line-number">119</span>)
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Adds text with a &quot;border&quot; to image, the font name and color must be allready setted</p>
	<ul class="tags">
				<li><span class="field">return:</span> If operation succeed return 8 elements array with coordinates of corners or false on fail</li>
				<li><span class="field">access:</span> public</li>
			</ul>

	<div class="method-signature">
		<span class="method-result">array|bool</span>
		<span class="method-name">
			addTextWithBorder
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$size</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$x</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$y</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$text</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$border_color</span>, [<span class="var-type">integer</span>&nbsp;<span class="var-name">$angle</span> = <span class="var-default">0</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$size</span><span class="var-description">: Size of the font</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$x</span><span class="var-description">: X coordinate of text begining</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$y</span><span class="var-description">: Y coordinate of text begining</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$border_color</span><span class="var-description">: Border color</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$angle</span><span class="var-description">: An angle of tekst</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$text</span>			</li>
				</ul>


	</div>
<a name="methodcopy" id="copy"><!-- --></a>
<div class="evenrow">

	<div class="method-header">
		<span class="method-title">copy</span> (line <span class="line-number">143</span>)
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Copy image from $im to current</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>

	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			copy
		</span>
					(<span class="var-type">resource|<a href="../default/Image.html">Image</a></span>&nbsp;<span class="var-name">$im</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$dst_x</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$dst_y</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$src_x</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$src_y</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$src_w</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$src_h</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">resource|<a href="../default/Image.html">Image</a></span>
				<span class="var-name">$im</span><span class="var-description">: Source image</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$dst_x</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$dst_y</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$src_x</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$src_y</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$src_w</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$src_h</span>			</li>
				</ul>


	</div>
<a name="methodget" id="get"><!-- --></a>
<div class="oddrow">

	<div class="method-header">
		<span class="method-title">get</span> (line <span class="line-number">269</span>)
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>

	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			get
		</span>
				()
			</div>



	</div>
<a name="methodline" id="line"><!-- --></a>
<div class="evenrow">

	<div class="method-header">
		<span class="method-title">line</span> (line <span class="line-number">249</span>)
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Draws a line from point (x1,y1) to (x2,y2)</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>

	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			line
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$x1</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$y1</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$x2</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$y2</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$x1</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$y1</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$x2</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$y2</span>			</li>
				</ul>


	</div>
<a name="methodlineX" id="lineX"><!-- --></a>
<div class="oddrow">

	<div class="method-header">
		<span class="method-title">lineX</span> (line <span class="line-number">238</span>)
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Draws a line on given width.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>

	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			lineX
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$x</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$x</span>			</li>
				</ul>


	</div>
<a name="methodlineY" id="lineY"><!-- --></a>
<div class="evenrow">

	<div class="method-header">
		<span class="method-title">lineY</span> (line <span class="line-number">230</span>)
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Draws a line on given height.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>

	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			lineY
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$y</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$y</span>			</li>
				</ul>


	</div>
<a name="methodoutput" id="output"><!-- --></a>
<div class="oddrow">

	<div class="method-header">
		<span class="method-title">output</span> (line <span class="line-number">184</span>)
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Outputs the image to the browser (with proper header), or saves it on a disk.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>

	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			output
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$type</span> = <span class="var-default">'jpeg'</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span> = <span class="var-default">NULL</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$quality</span> = <span class="var-default">95</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$type</span><span class="var-description">: type A type i</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: name The path to save the file to. If NULL, then image will be outputted to browser.</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$quality</span><span class="var-description">: quality A quality of image, for JPEG it's betwen 0-100 (quality level), for PNG 0-9 (compresion level)</span>			</li>
				</ul>


	</div>
<a name="methodresize" id="resize"><!-- --></a>
<div class="evenrow">

	<div class="method-header">
		<span class="method-title">resize</span> (line <span class="line-number">258</span>)
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Resize image to given values</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>

	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			resize
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$new_width</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$new_height</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$new_width</span><span class="var-description">: new_width A new width of image</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$new_height</span><span class="var-description">: new_height A new height of image</span>			</li>
				</ul>


	</div>
<a name="methodrgbToArray" id="rgbToArray"><!-- --></a>
<div class="oddrow">

	<div class="method-header">
		<span class="method-title">rgbToArray</span> (line <span class="line-number">73</span>)
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Converts a hex value color into an array</p>
	<ul class="tags">
				<li><span class="field">return:</span> Array with separeted RGB color values in dec</li>
				<li><span class="field">access:</span> public</li>
			</ul>

	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			rgbToArray
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$rgb</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$rgb</span><span class="var-description">: A hex color</span>			</li>
				</ul>


	</div>
<a name="methodscale" id="scale"><!-- --></a>
<div class="evenrow">

	<div class="method-header">
		<span class="method-title">scale</span> (line <span class="line-number">212</span>)
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Scales image to given percentage value</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>

	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			scale
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$scale</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$scale</span><span class="var-description">: scale</span>			</li>
				</ul>


	</div>
<a name="methodsetColor" id="setColor"><!-- --></a>
<div class="oddrow">

	<div class="method-header">
		<span class="method-title">setColor</span> (line <span class="line-number">85</span>)
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This function sets up a color</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>

	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setColor
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$hex_color</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$hex_color</span><span class="var-description">: A HEX value (ie. ff00ff, 6da8b3) color</span>			</li>
				</ul>


	</div>
<a name="methodsetFont" id="setFont"><!-- --></a>
<div class="evenrow">

	<div class="method-header">
		<span class="method-title">setFont</span> (line <span class="line-number">94</span>)
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Set a font name to use it in other methods</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>

	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setFont
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: Path to font</span>			</li>
				</ul>


	</div>
<a name="method__toString" id="__toString"><!-- --></a>
<div class="oddrow">

	<div class="method-header">
		<span class="method-title">__toString</span> (line <span class="line-number">64</span>)
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns image resource handler</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>

	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			__toString
		</span>
				()
			</div>



	</div>

		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Thu, 08 Apr 2010 14:38:55 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</div></body>
</html>
Return current item: Image.class