PHP Classes

File: examples/scale_percentage.php

Recommend this page to a friend!
  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: Update of examples/scale_percentage.php
Date: 9 months 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();


?>