Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/scale_percentage.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nicholas Oliveira  >  Image Wrapper  >  examples/scale_percentage.php  >  Download  
File: examples/scale_percentage.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Image Wrapper
Crop and resize PNG, JPEG and GIF images
Author: By
Last change:
Date: 1 year ago
Size: 260 bytes
 

Contents

Class file image Download
<?php

include("../cbImage.php");
include(
"../ImageResizer.class.php");
$c = new Image("cars.jpg");
$r = new ImageResizer($c);

//print_r($c->getType());


//$r->scalePercentage(80);
$r->ScalePercentage(10); // means  10% of real size of image
$r->show();


?>