Location: PHPKode > scripts > Screenshot > screenshot/examples/2.php
<?php

/**
From here is an alternative example which shows how you could use the manipulation features too, because it extends the original class you would use it like normal, but with additional features.
**/

require_once('screenshot.class.php');
require_once('manipulate.class.php');

class_exists('screenshot') or die('screenshot class does not exist.');
class_exists('manipulate') or die('manipulate class does not exist.');

$screen = new manipulate(true, 720, 500);
$screen->set_visible(true);
$screen->navigate('http://google.com');
$screen->title('You can set custom titles too (and custom body if you want)');
$screen->position(0, 0);
$screen->capture();
$screen->crop();
$screen->rotate();
$screen->save('image.png');
$screen->output();
$screen->quit();

unset($screen);

/** Enjoy everyone! **/

?>
Return current item: Screenshot