<?php

/**
 * library for image handling using the GD library of functions
 * @package core
 * @subpackage graphic-handlers\lib-nographics
 */
// force UTF-8 Ø

$_zp_graphics_optionhandlers[] = new lib_NoGraphics(); // register option handler
/**
 * Option class for lib-GD
 *
 */

class lib_NoGraphics {

	function __construct() {

	}

	/**
	 * Standard option interface
	 *
	 * @return array
	 */
	function getOptionsSupported() {

	}

	function canLoadMsg() {
		return '';
	}

}

if (!function_exists('zp_graphicsLibInfo')) {

	$_lib_GD_info = array();
	$_lib_GD_info['Library'] = 'None';
	$_lib_GD_info['Library_desc'] = '<p class="error">' . gettext('There is no PHP Graphics support.') . '</p>';

	if (DEBUG_IMAGE)
		debugLog($_lib_GD_info['Library_desc']);

	function zp_imageGet($imgfile) {
		return false;
	}

	function zp_imageOutput($im, $type, $filename = NULL, $qual = 75) {
		return false;
	}

	function zp_createImage($w, $h) {
		return false;
	}

	function zp_imageFill($image, $x, $y, $color) {
		return false;
	}

	function zp_imageColorTransparent($image, $color) {
		return false;
	}

	function zp_copyCanvas($imgCanvas, $img, $dest_x, $dest_y, $src_x, $src_y, $w, $h) {
		return false;
	}

	function zp_resampleImage($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) {
		return false;
	}

	function zp_imageUnsharpMask($img, $amount, $radius, $threshold) {
		return false;
	}

	function zp_imageResizeAlpha($src, $w, $h) {
		return false;
	}
	
	function zp_imageResizeTransparent($src, $w, $h) {
		return false;
	}

	function zp_imageCanRotate() {
		return false;
	}

	function zp_rotateImage($im, $rotate) {
		return false;
	}

	function zp_imageDims($filename) {
		return false;
	}

	function zp_imageIPTC($filename) {
		return false;
	}

	function zp_imageWidth($im) {
		return false;
	}

	function zp_imageHeight($im) {
		return false;
	}

	function zp_imageMerge($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct) {
		return false;
	}

	function zp_imageGray($image) {

	}

	function zp_imageKill($im) {
		return false;
	}

	function zp_colorAllocate($image, $red, $green, $blue) {
		return false;
	}

	function zp_writeString($image, $font, $x, $y, $string, $color) {

	}

	function zp_drawRectangle($image, $x1, $y1, $x2, $y2, $color) {
		return false;
	}

	function zp_graphicsLibInfo() {
		global $_lib_GD_info;
		return $_lib_GD_info;
	}

	function zp_getFonts() {
		return $_gd_fontlist;
	}

	function zp_imageLoadFont($font = NULL, $size = 18) {
		return false;
	}

	function zp_imageFontWidth($font) {
		return false;
	}

	function zp_imageFontHeight($font) {
		return false;
	}

	function imageBlurGD($imgCanvas, $imgCanvas2, $radius, $w, $h) {

	}

	function zp_imageFromString($string) {
		return false;
	}

}
?>