Login   Register  
PHP Classes
elePHPant
Icontem

File: sample1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Huda M Elmatsani  >  Image Slicer  >  sample1.php  >  Download  
File: sample1.php
Role: Example script
Content type: text/plain
Description: generate sliced image within a table
Class: Image Slicer
Generate HTML to present images divided in pieces
Author: By
Last change:
Date: 2004-08-14 12:57
Size: 1,004 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>ImageSlicer Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr align="center" valign="top">
    <td colspan="2"><h1>ImageSlicer</h1></td>
  </tr>
  <tr valign="top">
    <td><?
include("imageslice.php");

$slice = new ImageSlicer("autumnleaves.jpg",4,4);
$slice->set_border(2);
$slice->show_image();


?>
      <p><br>
  $slice = new ImageSlicer(&quot;autumnleaves.jpg&quot;,4,4);<br>
  $slice-&gt;set_border(2);<br>
  $slice-&gt;show_image();</p></td>
    <td>      <?

$slice 
= new ImageSlicer("autumnleaves.jpg",4,2);
$slice->show_image();


?>
      <br>
$slice = new ImageSlicer(&quot;autumnleaves.jpg&quot;,4,2);<br>
$slice-&gt;show_image();</td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>