PHP Classes

File: sample1.php

Recommend this page to a friend!
  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: 18 years ago
Size: 1,004 bytes


Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<title>ImageSlicer Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr align="center" valign="top">
    <td colspan="2"><h1>ImageSlicer</h1></td>
  <tr valign="top">

$slice = new ImageSlicer("autumnleaves.jpg",4,4);

  $slice = new ImageSlicer(&quot;autumnleaves.jpg&quot;,4,4);<br>
    <td> <?

= new ImageSlicer("autumnleaves.jpg",4,2);

$slice = new ImageSlicer(&quot;autumnleaves.jpg&quot;,4,2);<br>