PHP Classes
elePHPant
Icontem

File: example-01.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Krzysztof Kardasz  >  Nweb Image  >  example-01.php  >  Download  
File: example-01.php
Role: Example script
Content type: text/plain
Description: Example
Class: Nweb Image
Perform several image manipulation operations
Author: By
Last change:
Date: 7 years ago
Size: 909 bytes
 

Contents

Class file image Download
<?php
/**
 * Nweb Extension Script
 *
 * Example
 *
 * @category Nweb
 * @package Nweb_Scripts
 * @author Krzysztof Kardasz
 * @copyright Copyright (c) euo.pl
 */


   
include 'lib/Image.php';
    include
'lib/ImageException.php';

try {

   
$obj = new Image('photos/image-01.jpg');
   
$obj->open();

   
# Wyświetlenie zdjęcia
   
$obj->Display ();

   
/*
    echo 'Plik: ' . $obj->ImageFile() . '<br />';
    echo 'Nazwa pliku: ' . $obj->ImageName() . '<br />';
    echo 'Katalog: ' . $obj->ImageDir() . '<br />';
    echo 'Szerokosc: ' . $obj->ImageWidth() . '<br />';
    echo 'Wysokosc: ' . $obj->ImageHeight(). '<br />';
    echo 'Typ: ' . $obj->ImageExt() . '<br />';
    */

    # Wyczyszczenie pamięci przydzielonej dla zdjęcia
   
$obj->ImageClear();
}
catch (
ImageException $e)
{
    echo
$e->Message();
}

?>