<?php

interface IGDImage
{
	function __construct($image);
	function __destruct();
	function getWidth();
	function getHeight();
	function getMIME();
	function getImage($format = null, $level = null, $filters = null);
	function save($format = null, $filename, $level = null, $filters = null);
	function setAlphaBlending($bool);
	function setSaveAlpha($bool);
	function setAntiAlias($bool);
	function watermarkWith(IGDImage $watermark, $dstX = 0, $dstY = 0, $srcX = 0, $srcY = 0, $srcW = null, $srcH = null);
	function overlayWith(IGDImage $overlay, $dstX = 0, $dstY = 0, $srcX = 0, $srcY = 0, $srcW = null, $srcH = null, $pct = 100);
	
	// Want to do: $image->resample(W, H);
	function resample($dstW = null, $dstH = null, $preserveRatio = true); //$dstX = 0, $dstY = 0, $srcX = 0, $srcY = 0, $dstW = 0, $dstH = 0, $srcW = 0, $srcH = 0);
	//function copyResampled(IGDImage $newImage, $dstX = 0, $dstY = 0, $srcX = 0, $srcY = 0, $dstW = 0, $dstH = 0, $srcW = 0, $srcH = 0);
	function resize($dstW = null, $dstH = null, $preserveRatio = true);
	//function copyResized();
}

?>