Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include
File: gd.h
#ifdef __cplusplus
[0] Fix | Delete
extern "C" {
[1] Fix | Delete
#endif
[2] Fix | Delete
[3] Fix | Delete
#include <stdlib.h>
[4] Fix | Delete
[5] Fix | Delete
#ifndef GD_H
[6] Fix | Delete
#define GD_H 1
[7] Fix | Delete
[8] Fix | Delete
/* Version information. This gets parsed by build scripts as well as
[9] Fix | Delete
* gcc so each #define line in this group must also be splittable on
[10] Fix | Delete
* whitespace, take the form GD_*_VERSION and contain the magical
[11] Fix | Delete
* trailing comment. */
[12] Fix | Delete
#define GD_MAJOR_VERSION 2 /*version605b5d1778*/
[13] Fix | Delete
#define GD_MINOR_VERSION 2 /*version605b5d1778*/
[14] Fix | Delete
#define GD_RELEASE_VERSION 5 /*version605b5d1778*/
[15] Fix | Delete
#define GD_EXTRA_VERSION "" /*version605b5d1778*/
[16] Fix | Delete
/* End parsable section. */
[17] Fix | Delete
[18] Fix | Delete
/* The version string. This is constructed from the version number
[19] Fix | Delete
* parts above via macro abuse^Wtrickery. */
[20] Fix | Delete
#define GDXXX_VERSION_STR(mjr, mnr, rev, ext) mjr "." mnr "." rev ext
[21] Fix | Delete
#define GDXXX_STR(s) GDXXX_SSTR(s) /* Two levels needed to expand args. */
[22] Fix | Delete
#define GDXXX_SSTR(s) #s
[23] Fix | Delete
[24] Fix | Delete
#define GD_VERSION_STRING \
[25] Fix | Delete
GDXXX_VERSION_STR(GDXXX_STR(GD_MAJOR_VERSION), \
[26] Fix | Delete
GDXXX_STR(GD_MINOR_VERSION), \
[27] Fix | Delete
GDXXX_STR(GD_RELEASE_VERSION), \
[28] Fix | Delete
GD_EXTRA_VERSION)
[29] Fix | Delete
[30] Fix | Delete
[31] Fix | Delete
/* Do the DLL dance: dllexport when building the DLL,
[32] Fix | Delete
dllimport when importing from it, nothing when
[33] Fix | Delete
not on Silly Silly Windows (tm Aardman Productions). */
[34] Fix | Delete
[35] Fix | Delete
/* 2.0.20: for headers */
[36] Fix | Delete
[37] Fix | Delete
/* 2.0.24: __stdcall also needed for Visual BASIC
[38] Fix | Delete
and other languages. This breaks ABI compatibility
[39] Fix | Delete
with previous DLL revs, but it's necessary. */
[40] Fix | Delete
[41] Fix | Delete
/* 2.0.29: WIN32 programmers can declare the NONDLL macro if they
[42] Fix | Delete
wish to build gd as a static library or by directly including
[43] Fix | Delete
the gd sources in a project. */
[44] Fix | Delete
[45] Fix | Delete
/* http://gcc.gnu.org/wiki/Visibility */
[46] Fix | Delete
#if defined(_WIN32) || defined(CYGWIN) || defined(_WIN32_WCE)
[47] Fix | Delete
# ifdef BGDWIN32
[48] Fix | Delete
# ifdef NONDLL
[49] Fix | Delete
# define BGD_EXPORT_DATA_PROT
[50] Fix | Delete
# else
[51] Fix | Delete
# ifdef __GNUC__
[52] Fix | Delete
# define BGD_EXPORT_DATA_PROT __attribute__ ((dllexport))
[53] Fix | Delete
# else
[54] Fix | Delete
# define BGD_EXPORT_DATA_PROT __declspec(dllexport)
[55] Fix | Delete
# endif
[56] Fix | Delete
# endif
[57] Fix | Delete
# else
[58] Fix | Delete
# ifdef __GNUC__
[59] Fix | Delete
# define BGD_EXPORT_DATA_PROT __attribute__ ((dllimport))
[60] Fix | Delete
# else
[61] Fix | Delete
# define BGD_EXPORT_DATA_PROT __declspec(dllimport)
[62] Fix | Delete
# endif
[63] Fix | Delete
# endif
[64] Fix | Delete
# define BGD_STDCALL __stdcall
[65] Fix | Delete
# define BGD_EXPORT_DATA_IMPL
[66] Fix | Delete
#else
[67] Fix | Delete
# if defined(__GNUC__) || defined(__clang__)
[68] Fix | Delete
# define BGD_EXPORT_DATA_PROT __attribute__ ((visibility ("default")))
[69] Fix | Delete
# define BGD_EXPORT_DATA_IMPL __attribute__ ((visibility ("hidden")))
[70] Fix | Delete
# else
[71] Fix | Delete
# define BGD_EXPORT_DATA_PROT
[72] Fix | Delete
# define BGD_EXPORT_DATA_IMPL
[73] Fix | Delete
# endif
[74] Fix | Delete
# define BGD_STDCALL
[75] Fix | Delete
#endif
[76] Fix | Delete
[77] Fix | Delete
#define BGD_DECLARE(rt) BGD_EXPORT_DATA_PROT rt BGD_STDCALL
[78] Fix | Delete
[79] Fix | Delete
/* VS2012+ disable keyword macroizing unless _ALLOW_KEYWORD_MACROS is set
[80] Fix | Delete
We define inline, snprintf, and strcasecmp if they're missing
[81] Fix | Delete
*/
[82] Fix | Delete
#ifdef _MSC_VER
[83] Fix | Delete
# define _ALLOW_KEYWORD_MACROS
[84] Fix | Delete
# ifndef inline
[85] Fix | Delete
# define inline __inline
[86] Fix | Delete
# endif
[87] Fix | Delete
# ifndef strcasecmp
[88] Fix | Delete
# define strcasecmp _stricmp
[89] Fix | Delete
# endif
[90] Fix | Delete
#if _MSC_VER < 1900
[91] Fix | Delete
extern int snprintf(char*, size_t, const char*, ...);
[92] Fix | Delete
#endif
[93] Fix | Delete
#endif
[94] Fix | Delete
[95] Fix | Delete
#ifdef __cplusplus
[96] Fix | Delete
extern "C"
[97] Fix | Delete
{
[98] Fix | Delete
#endif
[99] Fix | Delete
[100] Fix | Delete
/* gd.h: declarations file for the graphic-draw module.
[101] Fix | Delete
* Permission to use, copy, modify, and distribute this software and its
[102] Fix | Delete
* documentation for any purpose and without fee is hereby granted, provided
[103] Fix | Delete
* that the above copyright notice appear in all copies and that both that
[104] Fix | Delete
* copyright notice and this permission notice appear in supporting
[105] Fix | Delete
* documentation. This software is provided "AS IS." Thomas Boutell and
[106] Fix | Delete
* Boutell.Com, Inc. disclaim all warranties, either express or implied,
[107] Fix | Delete
* including but not limited to implied warranties of merchantability and
[108] Fix | Delete
* fitness for a particular purpose, with respect to this code and accompanying
[109] Fix | Delete
* documentation. */
[110] Fix | Delete
[111] Fix | Delete
/* stdio is needed for file I/O. */
[112] Fix | Delete
#include <stdio.h>
[113] Fix | Delete
#include <stdarg.h>
[114] Fix | Delete
#include "gd_io.h"
[115] Fix | Delete
[116] Fix | Delete
/* The maximum number of palette entries in palette-based images.
[117] Fix | Delete
In the wonderful new world of gd 2.0, you can of course have
[118] Fix | Delete
many more colors when using truecolor mode. */
[119] Fix | Delete
[120] Fix | Delete
#define gdMaxColors 256
[121] Fix | Delete
[122] Fix | Delete
/* Image type. See functions below; you will not need to change
[123] Fix | Delete
the elements directly. Use the provided macros to
[124] Fix | Delete
access sx, sy, the color table, and colorsTotal for
[125] Fix | Delete
read-only purposes. */
[126] Fix | Delete
[127] Fix | Delete
/* If 'truecolor' is set true, the image is truecolor;
[128] Fix | Delete
pixels are represented by integers, which
[129] Fix | Delete
must be 32 bits wide or more.
[130] Fix | Delete
[131] Fix | Delete
True colors are repsented as follows:
[132] Fix | Delete
[133] Fix | Delete
ARGB
[134] Fix | Delete
[135] Fix | Delete
Where 'A' (alpha channel) occupies only the
[136] Fix | Delete
LOWER 7 BITS of the MSB. This very small
[137] Fix | Delete
loss of alpha channel resolution allows gd 2.x
[138] Fix | Delete
to keep backwards compatibility by allowing
[139] Fix | Delete
signed integers to be used to represent colors,
[140] Fix | Delete
and negative numbers to represent special cases,
[141] Fix | Delete
just as in gd 1.x. */
[142] Fix | Delete
[143] Fix | Delete
#define gdAlphaMax 127
[144] Fix | Delete
#define gdAlphaOpaque 0
[145] Fix | Delete
#define gdAlphaTransparent 127
[146] Fix | Delete
#define gdRedMax 255
[147] Fix | Delete
#define gdGreenMax 255
[148] Fix | Delete
#define gdBlueMax 255
[149] Fix | Delete
[150] Fix | Delete
/**
[151] Fix | Delete
* Group: Color Decomposition
[152] Fix | Delete
*/
[153] Fix | Delete
[154] Fix | Delete
/**
[155] Fix | Delete
* Macro: gdTrueColorGetAlpha
[156] Fix | Delete
*
[157] Fix | Delete
* Gets the alpha channel value
[158] Fix | Delete
*
[159] Fix | Delete
* Parameters:
[160] Fix | Delete
* c - The color
[161] Fix | Delete
*
[162] Fix | Delete
* See also:
[163] Fix | Delete
* - <gdTrueColorAlpha>
[164] Fix | Delete
*/
[165] Fix | Delete
#define gdTrueColorGetAlpha(c) (((c) & 0x7F000000) >> 24)
[166] Fix | Delete
[167] Fix | Delete
/**
[168] Fix | Delete
* Macro: gdTrueColorGetRed
[169] Fix | Delete
*
[170] Fix | Delete
* Gets the red channel value
[171] Fix | Delete
*
[172] Fix | Delete
* Parameters:
[173] Fix | Delete
* c - The color
[174] Fix | Delete
*
[175] Fix | Delete
* See also:
[176] Fix | Delete
* - <gdTrueColorAlpha>
[177] Fix | Delete
*/
[178] Fix | Delete
#define gdTrueColorGetRed(c) (((c) & 0xFF0000) >> 16)
[179] Fix | Delete
[180] Fix | Delete
/**
[181] Fix | Delete
* Macro: gdTrueColorGetGreen
[182] Fix | Delete
*
[183] Fix | Delete
* Gets the green channel value
[184] Fix | Delete
*
[185] Fix | Delete
* Parameters:
[186] Fix | Delete
* c - The color
[187] Fix | Delete
*
[188] Fix | Delete
* See also:
[189] Fix | Delete
* - <gdTrueColorAlpha>
[190] Fix | Delete
*/
[191] Fix | Delete
#define gdTrueColorGetGreen(c) (((c) & 0x00FF00) >> 8)
[192] Fix | Delete
[193] Fix | Delete
/**
[194] Fix | Delete
* Macro: gdTrueColorGetBlue
[195] Fix | Delete
*
[196] Fix | Delete
* Gets the blue channel value
[197] Fix | Delete
*
[198] Fix | Delete
* Parameters:
[199] Fix | Delete
* c - The color
[200] Fix | Delete
*
[201] Fix | Delete
* See also:
[202] Fix | Delete
* - <gdTrueColorAlpha>
[203] Fix | Delete
*/
[204] Fix | Delete
#define gdTrueColorGetBlue(c) ((c) & 0x0000FF)
[205] Fix | Delete
[206] Fix | Delete
/**
[207] Fix | Delete
* Group: Effects
[208] Fix | Delete
*
[209] Fix | Delete
* The layering effect
[210] Fix | Delete
*
[211] Fix | Delete
* When pixels are drawn the new colors are "mixed" with the background
[212] Fix | Delete
* depending on the effect.
[213] Fix | Delete
*
[214] Fix | Delete
* Note that the effect does not apply to palette images, where pixels
[215] Fix | Delete
* are always replaced.
[216] Fix | Delete
*
[217] Fix | Delete
* Modes:
[218] Fix | Delete
* gdEffectReplace - replace pixels
[219] Fix | Delete
* gdEffectAlphaBlend - blend pixels, see <gdAlphaBlend>
[220] Fix | Delete
* gdEffectNormal - default mode; same as gdEffectAlphaBlend
[221] Fix | Delete
* gdEffectOverlay - overlay pixels, see <gdLayerOverlay>
[222] Fix | Delete
* gdEffectMultiply - overlay pixels with multiply effect, see
[223] Fix | Delete
* <gdLayerMultiply>
[224] Fix | Delete
*
[225] Fix | Delete
* See also:
[226] Fix | Delete
* - <gdImageAlphaBlending>
[227] Fix | Delete
*/
[228] Fix | Delete
#define gdEffectReplace 0
[229] Fix | Delete
#define gdEffectAlphaBlend 1
[230] Fix | Delete
#define gdEffectNormal 2
[231] Fix | Delete
#define gdEffectOverlay 3
[232] Fix | Delete
#define gdEffectMultiply 4
[233] Fix | Delete
[234] Fix | Delete
#define GD_TRUE 1
[235] Fix | Delete
#define GD_FALSE 0
[236] Fix | Delete
[237] Fix | Delete
#define GD_EPSILON 1e-6
[238] Fix | Delete
#ifndef M_PI
[239] Fix | Delete
# define M_PI 3.14159265358979323846
[240] Fix | Delete
#endif
[241] Fix | Delete
[242] Fix | Delete
/* This function accepts truecolor pixel values only. The
[243] Fix | Delete
source color is composited with the destination color
[244] Fix | Delete
based on the alpha channel value of the source color.
[245] Fix | Delete
The resulting color is opaque. */
[246] Fix | Delete
[247] Fix | Delete
BGD_DECLARE(int) gdAlphaBlend (int dest, int src);
[248] Fix | Delete
BGD_DECLARE(int) gdLayerOverlay (int dest, int src);
[249] Fix | Delete
BGD_DECLARE(int) gdLayerMultiply (int dest, int src);
[250] Fix | Delete
[251] Fix | Delete
[252] Fix | Delete
/**
[253] Fix | Delete
* Group: Color Quantization
[254] Fix | Delete
*
[255] Fix | Delete
* Enum: gdPaletteQuantizationMethod
[256] Fix | Delete
*
[257] Fix | Delete
* Constants:
[258] Fix | Delete
* GD_QUANT_DEFAULT - GD_QUANT_LIQ if libimagequant is available,
[259] Fix | Delete
* GD_QUANT_JQUANT otherwise.
[260] Fix | Delete
* GD_QUANT_JQUANT - libjpeg's old median cut. Fast, but only uses 16-bit
[261] Fix | Delete
* color.
[262] Fix | Delete
* GD_QUANT_NEUQUANT - NeuQuant - approximation using Kohonen neural network.
[263] Fix | Delete
* GD_QUANT_LIQ - A combination of algorithms used in libimagequant
[264] Fix | Delete
* aiming for the highest quality at cost of speed.
[265] Fix | Delete
*
[266] Fix | Delete
* Note that GD_QUANT_JQUANT does not retain the alpha channel, and
[267] Fix | Delete
* GD_QUANT_NEUQUANT does not support dithering.
[268] Fix | Delete
*
[269] Fix | Delete
* See also:
[270] Fix | Delete
* - <gdImageTrueColorToPaletteSetMethod>
[271] Fix | Delete
*/
[272] Fix | Delete
enum gdPaletteQuantizationMethod {
[273] Fix | Delete
GD_QUANT_DEFAULT = 0,
[274] Fix | Delete
GD_QUANT_JQUANT = 1,
[275] Fix | Delete
GD_QUANT_NEUQUANT = 2,
[276] Fix | Delete
GD_QUANT_LIQ = 3
[277] Fix | Delete
};
[278] Fix | Delete
[279] Fix | Delete
[280] Fix | Delete
/**
[281] Fix | Delete
* Group: Transform
[282] Fix | Delete
*
[283] Fix | Delete
* Constants: gdInterpolationMethod
[284] Fix | Delete
*
[285] Fix | Delete
* GD_BELL - Bell
[286] Fix | Delete
* GD_BESSEL - Bessel
[287] Fix | Delete
* GD_BILINEAR_FIXED - fixed point bilinear
[288] Fix | Delete
* GD_BICUBIC - Bicubic
[289] Fix | Delete
* GD_BICUBIC_FIXED - fixed point bicubic integer
[290] Fix | Delete
* GD_BLACKMAN - Blackman
[291] Fix | Delete
* GD_BOX - Box
[292] Fix | Delete
* GD_BSPLINE - BSpline
[293] Fix | Delete
* GD_CATMULLROM - Catmullrom
[294] Fix | Delete
* GD_GAUSSIAN - Gaussian
[295] Fix | Delete
* GD_GENERALIZED_CUBIC - Generalized cubic
[296] Fix | Delete
* GD_HERMITE - Hermite
[297] Fix | Delete
* GD_HAMMING - Hamming
[298] Fix | Delete
* GD_HANNING - Hannig
[299] Fix | Delete
* GD_MITCHELL - Mitchell
[300] Fix | Delete
* GD_NEAREST_NEIGHBOUR - Nearest neighbour interpolation
[301] Fix | Delete
* GD_POWER - Power
[302] Fix | Delete
* GD_QUADRATIC - Quadratic
[303] Fix | Delete
* GD_SINC - Sinc
[304] Fix | Delete
* GD_TRIANGLE - Triangle
[305] Fix | Delete
* GD_WEIGHTED4 - 4 pixels weighted bilinear interpolation
[306] Fix | Delete
* GD_LINEAR - bilinear interpolation
[307] Fix | Delete
*
[308] Fix | Delete
* See also:
[309] Fix | Delete
* - <gdImageSetInterpolationMethod>
[310] Fix | Delete
* - <gdImageGetInterpolationMethod>
[311] Fix | Delete
*/
[312] Fix | Delete
typedef enum {
[313] Fix | Delete
GD_DEFAULT = 0,
[314] Fix | Delete
GD_BELL,
[315] Fix | Delete
GD_BESSEL,
[316] Fix | Delete
GD_BILINEAR_FIXED,
[317] Fix | Delete
GD_BICUBIC,
[318] Fix | Delete
GD_BICUBIC_FIXED,
[319] Fix | Delete
GD_BLACKMAN,
[320] Fix | Delete
GD_BOX,
[321] Fix | Delete
GD_BSPLINE,
[322] Fix | Delete
GD_CATMULLROM,
[323] Fix | Delete
GD_GAUSSIAN,
[324] Fix | Delete
GD_GENERALIZED_CUBIC,
[325] Fix | Delete
GD_HERMITE,
[326] Fix | Delete
GD_HAMMING,
[327] Fix | Delete
GD_HANNING,
[328] Fix | Delete
GD_MITCHELL,
[329] Fix | Delete
GD_NEAREST_NEIGHBOUR,
[330] Fix | Delete
GD_POWER,
[331] Fix | Delete
GD_QUADRATIC,
[332] Fix | Delete
GD_SINC,
[333] Fix | Delete
GD_TRIANGLE,
[334] Fix | Delete
GD_WEIGHTED4,
[335] Fix | Delete
GD_LINEAR,
[336] Fix | Delete
GD_METHOD_COUNT = 23
[337] Fix | Delete
} gdInterpolationMethod;
[338] Fix | Delete
[339] Fix | Delete
/* define struct with name and func ptr and add it to gdImageStruct gdInterpolationMethod interpolation; */
[340] Fix | Delete
[341] Fix | Delete
/* Interpolation function ptr */
[342] Fix | Delete
typedef double (* interpolation_method )(double);
[343] Fix | Delete
[344] Fix | Delete
[345] Fix | Delete
/*
[346] Fix | Delete
Group: Types
[347] Fix | Delete
[348] Fix | Delete
typedef: gdImage
[349] Fix | Delete
[350] Fix | Delete
typedef: gdImagePtr
[351] Fix | Delete
[352] Fix | Delete
The data structure in which gd stores images. <gdImageCreate>,
[353] Fix | Delete
<gdImageCreateTrueColor> and the various image file-loading functions
[354] Fix | Delete
return a pointer to this type, and the other functions expect to
[355] Fix | Delete
receive a pointer to this type as their first argument.
[356] Fix | Delete
[357] Fix | Delete
*gdImagePtr* is a pointer to *gdImage*.
[358] Fix | Delete
[359] Fix | Delete
See also:
[360] Fix | Delete
<Accessor Macros>
[361] Fix | Delete
[362] Fix | Delete
(Previous versions of this library encouraged directly manipulating
[363] Fix | Delete
the contents ofthe struct but we are attempting to move away from
[364] Fix | Delete
this practice so the fields are no longer documented here. If you
[365] Fix | Delete
need to poke at the internals of this struct, feel free to look at
[366] Fix | Delete
*gd.h*.)
[367] Fix | Delete
*/
[368] Fix | Delete
typedef struct gdImageStruct {
[369] Fix | Delete
/* Palette-based image pixels */
[370] Fix | Delete
unsigned char **pixels;
[371] Fix | Delete
int sx;
[372] Fix | Delete
int sy;
[373] Fix | Delete
/* These are valid in palette images only. See also
[374] Fix | Delete
'alpha', which appears later in the structure to
[375] Fix | Delete
preserve binary backwards compatibility */
[376] Fix | Delete
int colorsTotal;
[377] Fix | Delete
int red[gdMaxColors];
[378] Fix | Delete
int green[gdMaxColors];
[379] Fix | Delete
int blue[gdMaxColors];
[380] Fix | Delete
int open[gdMaxColors];
[381] Fix | Delete
/* For backwards compatibility, this is set to the
[382] Fix | Delete
first palette entry with 100% transparency,
[383] Fix | Delete
and is also set and reset by the
[384] Fix | Delete
gdImageColorTransparent function. Newer
[385] Fix | Delete
applications can allocate palette entries
[386] Fix | Delete
with any desired level of transparency; however,
[387] Fix | Delete
bear in mind that many viewers, notably
[388] Fix | Delete
many web browsers, fail to implement
[389] Fix | Delete
full alpha channel for PNG and provide
[390] Fix | Delete
support for full opacity or transparency only. */
[391] Fix | Delete
int transparent;
[392] Fix | Delete
int *polyInts;
[393] Fix | Delete
int polyAllocated;
[394] Fix | Delete
struct gdImageStruct *brush;
[395] Fix | Delete
struct gdImageStruct *tile;
[396] Fix | Delete
int brushColorMap[gdMaxColors];
[397] Fix | Delete
int tileColorMap[gdMaxColors];
[398] Fix | Delete
int styleLength;
[399] Fix | Delete
int stylePos;
[400] Fix | Delete
int *style;
[401] Fix | Delete
int interlace;
[402] Fix | Delete
/* New in 2.0: thickness of line. Initialized to 1. */
[403] Fix | Delete
int thick;
[404] Fix | Delete
/* New in 2.0: alpha channel for palettes. Note that only
[405] Fix | Delete
Macintosh Internet Explorer and (possibly) Netscape 6
[406] Fix | Delete
really support multiple levels of transparency in
[407] Fix | Delete
palettes, to my knowledge, as of 2/15/01. Most
[408] Fix | Delete
common browsers will display 100% opaque and
[409] Fix | Delete
100% transparent correctly, and do something
[410] Fix | Delete
unpredictable and/or undesirable for levels
[411] Fix | Delete
in between. TBB */
[412] Fix | Delete
int alpha[gdMaxColors];
[413] Fix | Delete
/* Truecolor flag and pixels. New 2.0 fields appear here at the
[414] Fix | Delete
end to minimize breakage of existing object code. */
[415] Fix | Delete
int trueColor;
[416] Fix | Delete
int **tpixels;
[417] Fix | Delete
/* Should alpha channel be copied, or applied, each time a
[418] Fix | Delete
pixel is drawn? This applies to truecolor images only.
[419] Fix | Delete
No attempt is made to alpha-blend in palette images,
[420] Fix | Delete
even if semitransparent palette entries exist.
[421] Fix | Delete
To do that, build your image as a truecolor image,
[422] Fix | Delete
then quantize down to 8 bits. */
[423] Fix | Delete
int alphaBlendingFlag;
[424] Fix | Delete
/* Should the alpha channel of the image be saved? This affects
[425] Fix | Delete
PNG at the moment; other future formats may also
[426] Fix | Delete
have that capability. JPEG doesn't. */
[427] Fix | Delete
int saveAlphaFlag;
[428] Fix | Delete
[429] Fix | Delete
/* There should NEVER BE ACCESSOR MACROS FOR ITEMS BELOW HERE, so this
[430] Fix | Delete
part of the structure can be safely changed in new releases. */
[431] Fix | Delete
[432] Fix | Delete
/* 2.0.12: anti-aliased globals. 2.0.26: just a few vestiges after
[433] Fix | Delete
switching to the fast, memory-cheap implementation from PHP-gd. */
[434] Fix | Delete
int AA;
[435] Fix | Delete
int AA_color;
[436] Fix | Delete
int AA_dont_blend;
[437] Fix | Delete
[438] Fix | Delete
/* 2.0.12: simple clipping rectangle. These values
[439] Fix | Delete
must be checked for safety when set; please use
[440] Fix | Delete
gdImageSetClip */
[441] Fix | Delete
int cx1;
[442] Fix | Delete
int cy1;
[443] Fix | Delete
int cx2;
[444] Fix | Delete
int cy2;
[445] Fix | Delete
[446] Fix | Delete
/* 2.1.0: allows to specify resolution in dpi */
[447] Fix | Delete
unsigned int res_x;
[448] Fix | Delete
unsigned int res_y;
[449] Fix | Delete
[450] Fix | Delete
/* Selects quantization method, see gdImageTrueColorToPaletteSetMethod() and gdPaletteQuantizationMethod enum. */
[451] Fix | Delete
int paletteQuantizationMethod;
[452] Fix | Delete
/* speed/quality trade-off. 1 = best quality, 10 = best speed. 0 = method-specific default.
[453] Fix | Delete
Applicable to GD_QUANT_LIQ and GD_QUANT_NEUQUANT. */
[454] Fix | Delete
int paletteQuantizationSpeed;
[455] Fix | Delete
/* Image will remain true-color if conversion to palette cannot achieve given quality.
[456] Fix | Delete
Value from 1 to 100, 1 = ugly, 100 = perfect. Applicable to GD_QUANT_LIQ.*/
[457] Fix | Delete
int paletteQuantizationMinQuality;
[458] Fix | Delete
/* Image will use minimum number of palette colors needed to achieve given quality. Must be higher than paletteQuantizationMinQuality
[459] Fix | Delete
Value from 1 to 100, 1 = ugly, 100 = perfect. Applicable to GD_QUANT_LIQ.*/
[460] Fix | Delete
int paletteQuantizationMaxQuality;
[461] Fix | Delete
gdInterpolationMethod interpolation_id;
[462] Fix | Delete
interpolation_method interpolation;
[463] Fix | Delete
}
[464] Fix | Delete
gdImage;
[465] Fix | Delete
[466] Fix | Delete
typedef gdImage *gdImagePtr;
[467] Fix | Delete
[468] Fix | Delete
[469] Fix | Delete
/* Point type for use in polygon drawing. */
[470] Fix | Delete
[471] Fix | Delete
/**
[472] Fix | Delete
* Group: Types
[473] Fix | Delete
*
[474] Fix | Delete
* typedef: gdPointF
[475] Fix | Delete
* Defines a point in a 2D coordinate system using floating point
[476] Fix | Delete
* values.
[477] Fix | Delete
* x - Floating point position (increase from left to right)
[478] Fix | Delete
* y - Floating point Row position (increase from top to bottom)
[479] Fix | Delete
*
[480] Fix | Delete
* typedef: gdPointFPtr
[481] Fix | Delete
* Pointer to a <gdPointF>
[482] Fix | Delete
*
[483] Fix | Delete
* See also:
[484] Fix | Delete
* <gdImageCreate>, <gdImageCreateTrueColor>,
[485] Fix | Delete
**/
[486] Fix | Delete
typedef struct
[487] Fix | Delete
{
[488] Fix | Delete
double x, y;
[489] Fix | Delete
}
[490] Fix | Delete
gdPointF, *gdPointFPtr;
[491] Fix | Delete
[492] Fix | Delete
[493] Fix | Delete
/*
[494] Fix | Delete
Group: Types
[495] Fix | Delete
[496] Fix | Delete
typedef: gdFont
[497] Fix | Delete
[498] Fix | Delete
typedef: gdFontPtr
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function