summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-01-29 21:38:55 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-01-29 21:38:55 +0100
commit44dbc7826dc34c86829b734fcec0015271b7873f (patch)
tree223614f070da2f3d00e594725aa750189fefb2e3 /user_guide/libraries
parent1c8dd3ad67bfa8da796bc0ebbfdf72be8d5bafb1 (diff)
Fixed a bug (#3024) in which master_dim wasn't getting reset by clear() in the Image library.
Documented clear()
Diffstat (limited to 'user_guide/libraries')
-rw-r--r--user_guide/libraries/image_lib.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/user_guide/libraries/image_lib.html b/user_guide/libraries/image_lib.html
index 8566f5a41..ac5e87701 100644
--- a/user_guide/libraries/image_lib.html
+++ b/user_guide/libraries/image_lib.html
@@ -122,6 +122,7 @@ folder containing the image files must have file permissions of 777.</p>
<li>$this->image_lib->crop()</li>
<li>$this->image_lib->rotate()</li>
<li>$this->image_lib->watermark()</li>
+<li>$this-&gt;image_lib-&gt;clear()</li>
</ul>
<p>These functions return boolean TRUE upon success and FALSE for failure. If they fail you can retrieve the
@@ -413,6 +414,9 @@ if ( ! $this->image_lib->rotate())<br />
+<h2>$this-&gt;image_lib-&gt;clear()</h2>
+<p>The clear function resets all of the values used when processing an image. You will want to call this if you are processing images in a loop.</p>
+<p><code>$this-&gt;image_lib-&gt;clear();</code></p>
<p>&nbsp;</p>
<h1>Image Watermarking</h1>
@@ -643,8 +647,6 @@ will be positioned at the bottom/center of the image, 20 pixels from the bottom
</tr>
</table>
-
-
</div>
<!-- END CONTENT -->