Back to index

php5  5.3.10
gd_compat.h
Go to the documentation of this file.
00001 #ifndef GD_COMPAT_H
00002 #define GD_COMPAT_H 1
00003 
00004 #if HAVE_GD_BUNDLED
00005 # include "gd.h"
00006 #else
00007 # include <gd.h>
00008 #endif
00009 
00010 const char * gdPngGetVersionString();
00011 const char * gdJpegGetVersionString();
00012 int gdJpegGetVersionInt();
00013 int overflow2(int a, int b);
00014 
00015 /* filters section
00016  *
00017  * Negate the imag src, white becomes black,
00018  * The red, green, and blue intensities of an image are negated.
00019  * White becomes black, yellow becomes blue, etc.
00020  */
00021 int gdImageNegate(gdImagePtr src);
00022 
00023 /* Convert the image src to a grayscale image */
00024 int gdImageGrayScale(gdImagePtr src);
00025 
00026 /* Set the brightness level <brightness> for the image src */
00027 int gdImageBrightness(gdImagePtr src, int brightness);
00028 
00029 /* Set the contrast level <contrast> for the image <src> */
00030 int gdImageContrast(gdImagePtr src, double contrast);
00031 
00032 /* Simply adds or substracts respectively red, green or blue to a pixel */
00033 int gdImageColor(gdImagePtr src, const int red, const int green, const int blue, const int alpha);
00034 
00035 /* Image convolution by a 3x3 custom matrix */
00036 int gdImageConvolution(gdImagePtr src, float ft[3][3], float filter_div, float offset);
00037 int gdImageEdgeDetectQuick(gdImagePtr src);
00038 int gdImageGaussianBlur(gdImagePtr im);
00039 int gdImageSelectiveBlur( gdImagePtr src);
00040 int gdImageEmboss(gdImagePtr im);
00041 int gdImageMeanRemoval(gdImagePtr im);
00042 int gdImageSmooth(gdImagePtr im, float weight);
00043 enum gdPixelateMode {
00044        GD_PIXELATE_UPPERLEFT,
00045        GD_PIXELATE_AVERAGE
00046 };
00047 
00048 int gdImagePixelate(gdImagePtr im, int block_size, const unsigned int mode);
00049 
00050 #if !HAVE_GD_IMAGEELLIPSE
00051 void gdImageEllipse(gdImagePtr im, int cx, int cy, int w, int h, int c);
00052 #endif
00053 
00054 gdImagePtr gdImageRotate (gdImagePtr src, double dAngle, int clrBack, int ignoretransparent);
00055 
00056 int gdImageColorMatch (gdImagePtr im1, gdImagePtr im2);
00057 
00058 #endif
00059