Image_Puzzle examples
<?php
require_once 'Image/Puzzle.php';
$options = array(
'rows' => 8,
'cols' => 7,
'edge' => 'line'
);
$puzzle = new Image_Puzzle($options);
$puzzle->createFromFile('images/original.jpg');
$puzzle->saveAll('images/line/piece_[row][col].gif');
?>
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
<?php
require_once 'Image/Puzzle.php';
$options = array(
'rows' => 3,
'cols' => 4,
'edge' => 'default'
);
$puzzle = new Image_Puzzle($options);
$puzzle->createFromFile('images/original.jpg');
$puzzle->saveAll('images/default/piece_[row][col].gif');
?>
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
<?php
require_once 'Image/Puzzle.php';
$options = array(
'rows' => 5,
'cols' => 6,
'edge' => 'arc'
);
$puzzle = new Image_Puzzle($options);
$puzzle->createFromFile('images/original.jpg');
$puzzle->saveAll('images/arc/piece_[row][col].gif');
?>
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
<?php
require_once 'Image/Puzzle.php';
$options = array(
'rows' => 6,
'cols' => 7,
'edge' => 'halfCircle'
);
$puzzle = new Image_Puzzle($options);
$puzzle->createFromFile('images/original.jpg');
$puzzle->saveAll('images/halfCircle/piece_[row][col].gif');
?>
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
<?php
require_once 'Image/Puzzle.php';
$options = array(
'rows' => 5,
'cols' => 7,
'edge' => 'sinus'
);
$puzzle = new Image_Puzzle($options);
$puzzle->createFromFile('images/original.jpg');
$puzzle->saveAll('images/sinus/piece_[row][col].gif');
?>
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |














































































































































































