Annotation of embedaddon/php/ext/gd/libgd/gd_compat.h, revision 1.1
1.1 ! misho 1: #ifndef GD_COMPAT_H
! 2: #define GD_COMPAT_H 1
! 3:
! 4: #if HAVE_GD_BUNDLED
! 5: # include "gd.h"
! 6: #else
! 7: # include <gd.h>
! 8: #endif
! 9:
! 10: const char * gdPngGetVersionString();
! 11: const char * gdJpegGetVersionString();
! 12: int gdJpegGetVersionInt();
! 13: int overflow2(int a, int b);
! 14:
! 15: /* filters section
! 16: *
! 17: * Negate the imag src, white becomes black,
! 18: * The red, green, and blue intensities of an image are negated.
! 19: * White becomes black, yellow becomes blue, etc.
! 20: */
! 21: int gdImageNegate(gdImagePtr src);
! 22:
! 23: /* Convert the image src to a grayscale image */
! 24: int gdImageGrayScale(gdImagePtr src);
! 25:
! 26: /* Set the brightness level <brightness> for the image src */
! 27: int gdImageBrightness(gdImagePtr src, int brightness);
! 28:
! 29: /* Set the contrast level <contrast> for the image <src> */
! 30: int gdImageContrast(gdImagePtr src, double contrast);
! 31:
! 32: /* Simply adds or substracts respectively red, green or blue to a pixel */
! 33: int gdImageColor(gdImagePtr src, const int red, const int green, const int blue, const int alpha);
! 34:
! 35: /* Image convolution by a 3x3 custom matrix */
! 36: int gdImageConvolution(gdImagePtr src, float ft[3][3], float filter_div, float offset);
! 37: int gdImageEdgeDetectQuick(gdImagePtr src);
! 38: int gdImageGaussianBlur(gdImagePtr im);
! 39: int gdImageSelectiveBlur( gdImagePtr src);
! 40: int gdImageEmboss(gdImagePtr im);
! 41: int gdImageMeanRemoval(gdImagePtr im);
! 42: int gdImageSmooth(gdImagePtr im, float weight);
! 43: enum gdPixelateMode {
! 44: GD_PIXELATE_UPPERLEFT,
! 45: GD_PIXELATE_AVERAGE
! 46: };
! 47:
! 48: int gdImagePixelate(gdImagePtr im, int block_size, const unsigned int mode);
! 49:
! 50: #if !HAVE_GD_IMAGEELLIPSE
! 51: void gdImageEllipse(gdImagePtr im, int cx, int cy, int w, int h, int c);
! 52: #endif
! 53:
! 54: gdImagePtr gdImageRotate (gdImagePtr src, double dAngle, int clrBack, int ignoretransparent);
! 55:
! 56: int gdImageColorMatch (gdImagePtr im1, gdImagePtr im2);
! 57:
! 58: #endif
! 59:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>