Login   Register  
PHP Classes

File: test.cropcanvas.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andrew Collington  >  Crop Canvas  >  test.cropcanvas.php  >  Download  
File: test.cropcanvas.php
Role: Example script
Content type: text/plain
Description: Just to show a few ways the class can be used.
Class: Crop Canvas
A class to crop images in a variety of ways.
Author: By
Last change: Brought up-to-date for new class.
Date: 8 years ago
Size: 830 bytes


Class file image Download

 * $Id: test.cropcanvas.php 44 2006-06-26 10:05:41Z Andrew $
 * [Description]
 * Example file for class.cropcanvas.php.
 * [Author]
 * Andrew Collington <php@amnuts.com> <http://php.amnuts.com/>

$cc =& new CropCanvas();

if (
$cc->loadImage(dirname(__FILE__). '/original.png')) {
$cc->saveImage(dirname(__FILE__). '/final1.jpg');

if (
$cc->loadImage(dirname(__FILE__). '/original2.png')) {
$cc->saveImage(dirname(__FILE__). '/final2.jpg'90);

if (
$cc->loadImage(dirname(__FILE__). '/original3.png')) {