diff options
Diffstat (limited to 'Build/source/libs/gd/libgd-src/docs/naturaldocs/html/files/gd-h.html')
-rw-r--r-- | Build/source/libs/gd/libgd-src/docs/naturaldocs/html/files/gd-h.html | 173 |
1 files changed, 173 insertions, 0 deletions
diff --git a/Build/source/libs/gd/libgd-src/docs/naturaldocs/html/files/gd-h.html b/Build/source/libs/gd/libgd-src/docs/naturaldocs/html/files/gd-h.html new file mode 100644 index 00000000000..7555607b649 --- /dev/null +++ b/Build/source/libs/gd/libgd-src/docs/naturaldocs/html/files/gd-h.html @@ -0,0 +1,173 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> + +<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>/root/workspace/hanqiang/libgd_release_2.3.1/libgd/docs/naturaldocs/tmp/gd.h</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/prettify.js"></script><script language=JavaScript src="../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad();prettyPrint();"><script language=JavaScript><!-- +if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script> + +<!-- Generated by Natural Docs, version 1.51 --> +<!-- http://www.naturaldocs.org --> + +<!-- saved from url=(0026)http://www.naturaldocs.org --> + + + + +<div id=Content><div class="CFile"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="gd.h"></a>gd.h</h1><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#gd.h" >gd.h</a></td><td class=SDescription></td></tr><tr class="SGroup"><td class=SEntry><a href="#Color_Decomposition" >Color Decomposition</a></td><td class=SDescription></td></tr><tr class="SMacro SIndent1 SMarked"><td class=SEntry><a href="#gdTrueColorGetAlpha" >gdTrueColorGetAlpha</a></td><td class=SDescription>Gets the alpha channel value</td></tr><tr class="SMacro SIndent1"><td class=SEntry><a href="#gdTrueColorGetRed" >gdTrueColorGetRed</a></td><td class=SDescription>Gets the red channel value</td></tr><tr class="SMacro SIndent1 SMarked"><td class=SEntry><a href="#gdTrueColorGetGreen" >gdTrueColorGetGreen</a></td><td class=SDescription>Gets the green channel value</td></tr><tr class="SMacro SIndent1"><td class=SEntry><a href="#gdTrueColorGetBlue" >gdTrueColorGetBlue</a></td><td class=SDescription>Gets the blue channel value</td></tr><tr class="SGroup"><td class=SEntry><a href="#Effects" >Effects</a></td><td class=SDescription>The layering effect</td></tr><tr class="SGroup"><td class=SEntry><a href="#Color_Quantization" >Color Quantization</a></td><td class=SDescription></td></tr><tr class="SEnumeration SIndent1 SMarked"><td class=SEntry><a href="#gdPaletteQuantizationMethod" >gdPaletteQuantizationMethod</a></td><td class=SDescription></td></tr><tr class="SGroup"><td class=SEntry><a href="#Transform" >Transform</a></td><td class=SDescription></td></tr><tr class="SConstant SIndent1 SMarked"><td class=SEntry><a href="#gdInterpolationMethod" >gdInterpolationMethod</a></td><td class=SDescription></td></tr><tr class="SGroup"><td class=SEntry><a href="#Types" >Types</a></td><td class=SDescription></td></tr><tr class="SType SIndent1 SMarked"><td class=SEntry><a href="#gdImage" >gdImage</a></td><td class=SDescription></td></tr><tr class="SType SIndent1"><td class=SEntry><a href="#gdImagePtr" >gdImagePtr</a></td><td class=SDescription>The data structure in which gd stores images. </td></tr><tr class="SGroup"><td class=SEntry><a href="#Types" >Types</a></td><td class=SDescription></td></tr><tr class="SType SIndent1 SMarked"><td class=SEntry><a href="#gdPointF" >gdPointF</a></td><td class=SDescription>Defines a point in a 2D coordinate system using floating point values. </td></tr><tr class="SType SIndent1"><td class=SEntry><a href="#gdPointFPtr" >gdPointFPtr</a></td><td class=SDescription>Pointer to a <a href="#gdPointF" class=LType id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">gdPointF</a></td></tr><tr class="SGroup"><td class=SEntry><a href="#Types" >Types</a></td><td class=SDescription></td></tr><tr class="SType SIndent1 SMarked"><td class=SEntry><a href="#gdFont" >gdFont</a></td><td class=SDescription></td></tr><tr class="SType SIndent1"><td class=SEntry><a href="#gdFontPtr" >gdFontPtr</a></td><td class=SDescription>A font structure, containing the bitmaps of all characters in a font. </td></tr><tr class="SGroup"><td class=SEntry><a href="#Colors" >Colors</a></td><td class=SDescription>Colors are always of type int which is supposed to be at least 32 bit large.</td></tr><tr class="SConstant SIndent1 SMarked"><td class=SEntry><a href="#Special_Colors" >Special Colors</a></td><td class=SDescription></td></tr><tr class="SGroup"><td class=SEntry><a href="#Types" >Types</a></td><td class=SDescription></td></tr><tr class="SType SIndent1 SMarked"><td class=SEntry><a href="#gdSource" >gdSource</a></td><td class=SDescription></td></tr><tr class="SType SIndent1"><td class=SEntry><a href="#gdSourcePtr" >gdSourcePtr</a></td><td class=SDescription><b>Note:</b> This interface is <b>obsolete</b> and kept only for *compatibility. </td></tr><tr class="SGroup"><td class=SEntry><a href="#Types" >Types</a></td><td class=SDescription></td></tr><tr class="SType SIndent1 SMarked"><td class=SEntry><a href="#gdFTStringExtra" >gdFTStringExtra</a></td><td class=SDescription></td></tr><tr class="SType SIndent1"><td class=SEntry><a href="#gdFTStringExtraPtr" >gdFTStringExtraPtr</a></td><td class=SDescription>A structure and associated pointer type used to pass additional parameters to the <a href="gdft-c.html#gdImageStringFTEx" class=LFunction id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">gdImageStringFTEx</a> function. </td></tr><tr class="SGroup"><td class=SEntry><a href="#Types" >Types</a></td><td class=SDescription></td></tr><tr class="SType SIndent1 SMarked"><td class=SEntry><a href="#gdPoint" >gdPoint</a></td><td class=SDescription></td></tr><tr class="SType SIndent1"><td class=SEntry><a href="#gdPointPtr" >gdPointPtr</a></td><td class=SDescription>Represents a point in the coordinate space of the image; used by <a href="gd-c.html#gdImagePolygon" class=LFunction id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">gdImagePolygon</a>, <a href="gd-c.html#gdImageOpenPolygon" class=LFunction id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">gdImageOpenPolygon</a> and <a href="gd-c.html#gdImageFilledPolygon" class=LFunction id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">gdImageFilledPolygon</a> for polygon drawing.</td></tr><tr class="SType SIndent1 SMarked"><td class=SEntry><a href="#gdRect" >gdRect</a></td><td class=SDescription>A rectangle in the coordinate space of the image</td></tr><tr class="SType SIndent1"><td class=SEntry><a href="#gdRectPtr" >gdRectPtr</a></td><td class=SDescription>A pointer to a <a href="#gdRect" class=LType id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">gdRect</a></td></tr><tr class="SGroup"><td class=SEntry><a href="#Color_Composition" >Color Composition</a></td><td class=SDescription></td></tr><tr class="SMacro SIndent1 SMarked"><td class=SEntry><a href="#gdTrueColorAlpha" >gdTrueColorAlpha</a></td><td class=SDescription>Compose a truecolor value from its components</td></tr><tr class="SGroup"><td class=SEntry><a href="#GifAnim" >GifAnim</a></td><td class=SDescription>Legal values for Disposal. </td></tr><tr class="SConstant SIndent1 SMarked"><td class=SEntry><a href="#gdImageGifAnim" >gdImageGifAnim</a></td><td class=SDescription></td></tr><tr class="SGroup"><td class=SEntry><a href="#Types" >Types</a></td><td class=SDescription></td></tr><tr class="SType SIndent1 SMarked"><td class=SEntry><a href="#gdSink" >gdSink</a></td><td class=SDescription></td></tr><tr class="SType SIndent1"><td class=SEntry><a href="#gdSinkPtr" >gdSinkPtr</a></td><td class=SDescription><b>Note:</b> This interface is <b>obsolete</b> and kept only for <b>compatibility</b>. </td></tr><tr class="SGroup"><td class=SEntry><a href="#Accessor_Macros" >Accessor Macros</a></td><td class=SDescription></td></tr><tr class="SMacro SIndent1 SMarked"><td class=SEntry><a href="#gdImageTrueColor" >gdImageTrueColor</a></td><td class=SDescription>Whether an image is a truecolor image.</td></tr><tr class="SMacro SIndent1"><td class=SEntry><a href="#gdImageSX" >gdImageSX</a></td><td class=SDescription>Gets the width (in pixels) of an image.</td></tr><tr class="SMacro SIndent1 SMarked"><td class=SEntry><a href="#gdImageSY" >gdImageSY</a></td><td class=SDescription>Gets the height (in pixels) of an image.</td></tr><tr class="SMacro SIndent1"><td class=SEntry><a href="#gdImageColorsTotal" >gdImageColorsTotal</a></td><td class=SDescription>Gets the number of colors in the palette.</td></tr><tr class="SMacro SIndent1 SMarked"><td class=SEntry><a href="#gdImageRed" >gdImageRed</a></td><td class=SDescription>Gets the red component value of a given color.</td></tr><tr class="SMacro SIndent1"><td class=SEntry><a href="#gdImageGreen" >gdImageGreen</a></td><td class=SDescription>Gets the green component value of a given color.</td></tr><tr class="SMacro SIndent1 SMarked"><td class=SEntry><a href="#gdImageBlue" >gdImageBlue</a></td><td class=SDescription>Gets the blue component value of a given color.</td></tr><tr class="SMacro SIndent1"><td class=SEntry><a href="#gdImageAlpha" >gdImageAlpha</a></td><td class=SDescription>Gets the alpha component value of a given color.</td></tr><tr class="SMacro SIndent1 SMarked"><td class=SEntry><a href="#gdImageGetTransparent" >gdImageGetTransparent</a></td><td class=SDescription>Gets the transparent color of the image.</td></tr><tr class="SMacro SIndent1"><td class=SEntry><a href="#gdImageGetInterlaced" >gdImageGetInterlaced</a></td><td class=SDescription>Whether an image is interlaced.</td></tr><tr class="SMacro SIndent1 SMarked"><td class=SEntry><a href="#gdImagePalettePixel" >gdImagePalettePixel</a></td><td class=SDescription>Gets the color of a pixel.</td></tr><tr class="SMacro SIndent1"><td class=SEntry><a href="#gdImageTrueColorPixel" >gdImageTrueColorPixel</a></td><td class=SDescription>Gets the color of a pixel.</td></tr><tr class="SMacro SIndent1 SMarked"><td class=SEntry><a href="#gdImageResolutionX" >gdImageResolutionX</a></td><td class=SDescription>Gets the horizontal resolution in DPI.</td></tr><tr class="SMacro SIndent1"><td class=SEntry><a href="#gdImageResolutionY" >gdImageResolutionY</a></td><td class=SDescription>Gets the vertical resolution in DPI.</td></tr><tr class="SGroup"><td class=SEntry><a href="#Crop" >Crop</a></td><td class=SDescription></td></tr><tr class="SConstant SIndent1 SMarked"><td class=SEntry><a href="#gdCropMode" >gdCropMode</a></td><td class=SDescription></td></tr><tr class="SGroup"><td class=SEntry><a href="#Image_Comparison" >Image Comparison</a></td><td class=SDescription></td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div> + +<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Color_Decomposition"></a>Color Decomposition</h3></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdTrueColorGetAlpha"></a>gdTrueColorGetAlpha</h3><div class=CBody><p>Gets the alpha channel value</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>c</td><td class=CDLDescription>The color</td></tr></table><h4 class=CHeading>See also</h4><ul><li><a href="#gdTrueColorAlpha" class=LMacro id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">gdTrueColorAlpha</a></li></ul></div></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdTrueColorGetRed"></a>gdTrueColorGetRed</h3><div class=CBody><p>Gets the red channel value</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>c</td><td class=CDLDescription>The color</td></tr></table><h4 class=CHeading>See also</h4><ul><li><a href="#gdTrueColorAlpha" class=LMacro id=link8 onMouseOver="ShowTip(event, 'tt7', 'link8')" onMouseOut="HideTip('tt7')">gdTrueColorAlpha</a></li></ul></div></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdTrueColorGetGreen"></a>gdTrueColorGetGreen</h3><div class=CBody><p>Gets the green channel value</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>c</td><td class=CDLDescription>The color</td></tr></table><h4 class=CHeading>See also</h4><ul><li><a href="#gdTrueColorAlpha" class=LMacro id=link9 onMouseOver="ShowTip(event, 'tt7', 'link9')" onMouseOut="HideTip('tt7')">gdTrueColorAlpha</a></li></ul></div></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdTrueColorGetBlue"></a>gdTrueColorGetBlue</h3><div class=CBody><p>Gets the blue channel value</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>c</td><td class=CDLDescription>The color</td></tr></table><h4 class=CHeading>See also</h4><ul><li><a href="#gdTrueColorAlpha" class=LMacro id=link10 onMouseOver="ShowTip(event, 'tt7', 'link10')" onMouseOut="HideTip('tt7')">gdTrueColorAlpha</a></li></ul></div></div></div> + +<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Effects"></a>Effects</h3><div class=CBody><p>The layering effect</p><p>When pixels are drawn the new colors are “mixed” with the background depending on the effect.</p><p>Note that the effect does not apply to palette images, where pixels are always replaced.</p><h4 class=CHeading>Modes</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>gdEffectReplace</td><td class=CDLDescription>replace pixels</td></tr><tr><td class=CDLEntry>gdEffectAlphaBlend</td><td class=CDLDescription>blend pixels, see <a href="gd-c.html#gdAlphaBlend" class=LFunction id=link11 onMouseOver="ShowTip(event, 'tt8', 'link11')" onMouseOut="HideTip('tt8')">gdAlphaBlend</a></td></tr><tr><td class=CDLEntry>gdEffectNormal</td><td class=CDLDescription>default mode; same as gdEffectAlphaBlend</td></tr><tr><td class=CDLEntry>gdEffectOverlay</td><td class=CDLDescription>overlay pixels, see <a href="gd-c.html#gdLayerOverlay" class=LFunction id=link12 onMouseOver="ShowTip(event, 'tt9', 'link12')" onMouseOut="HideTip('tt9')">gdLayerOverlay</a></td></tr><tr><td class=CDLEntry>gdEffectMultiply</td><td class=CDLDescription>overlay pixels with multiply effect, see <a href="gd-c.html#gdLayerMultiply" class=LFunction id=link13 onMouseOver="ShowTip(event, 'tt10', 'link13')" onMouseOut="HideTip('tt10')">gdLayerMultiply</a></td></tr></table><h4 class=CHeading>See also</h4><ul><li><a href="gd-c.html#gdImageAlphaBlending" class=LFunction id=link14 onMouseOver="ShowTip(event, 'tt11', 'link14')" onMouseOut="HideTip('tt11')">gdImageAlphaBlending</a></li></ul></div></div></div> + +<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Color_Quantization"></a>Color Quantization</h3></div></div> + +<div class="CEnumeration"><div class=CTopic><h3 class=CTitle><a name="gdPaletteQuantizationMethod"></a>gdPaletteQuantizationMethod</h3><div class=CBody><h4 class=CHeading>Constants</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry><a name="GD_QUANT_DEFAULT"></a>GD_QUANT_DEFAULT</td><td class=CDLDescription>GD_QUANT_LIQ if libimagequant is available, GD_QUANT_JQUANT otherwise.</td></tr><tr><td class=CDLEntry><a name="GD_QUANT_JQUANT"></a>GD_QUANT_JQUANT</td><td class=CDLDescription>libjpeg’s old median cut. Fast, but only uses 16-bit color.</td></tr><tr><td class=CDLEntry><a name="GD_QUANT_NEUQUANT"></a>GD_QUANT_NEUQUANT</td><td class=CDLDescription>NeuQuant - approximation using Kohonen neural network.</td></tr><tr><td class=CDLEntry><a name="GD_QUANT_LIQ"></a>GD_QUANT_LIQ</td><td class=CDLDescription>A combination of algorithms used in libimagequant aiming for the highest quality at cost of speed.</td></tr></table><p>Note that GD_QUANT_JQUANT does not retain the alpha channel, and GD_QUANT_NEUQUANT does not support dithering.</p><h4 class=CHeading>See also</h4><ul><li><a href="gd_topal-c.html#gdImageTrueColorToPaletteSetMethod" class=LFunction id=link15 onMouseOver="ShowTip(event, 'tt12', 'link15')" onMouseOut="HideTip('tt12')">gdImageTrueColorToPaletteSetMethod</a></li></ul></div></div></div> + +<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Transform"></a>Transform</h3></div></div> + +<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="gdInterpolationMethod"></a>gdInterpolationMethod</h3><div class=CBody><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry><a name="GD_BELL"></a>GD_BELL</td><td class=CDLDescription>Bell</td></tr><tr><td class=CDLEntry><a name="GD_BESSEL"></a>GD_BESSEL</td><td class=CDLDescription>Bessel</td></tr><tr><td class=CDLEntry><a name="GD_BILINEAR_FIXED"></a>GD_BILINEAR_FIXED</td><td class=CDLDescription>fixed point bilinear</td></tr><tr><td class=CDLEntry><a name="GD_BICUBIC"></a>GD_BICUBIC</td><td class=CDLDescription>Bicubic</td></tr><tr><td class=CDLEntry><a name="GD_BICUBIC_FIXED"></a>GD_BICUBIC_FIXED</td><td class=CDLDescription>fixed point bicubic integer</td></tr><tr><td class=CDLEntry><a name="GD_BLACKMAN"></a>GD_BLACKMAN</td><td class=CDLDescription>Blackman</td></tr><tr><td class=CDLEntry><a name="GD_BOX"></a>GD_BOX</td><td class=CDLDescription>Box</td></tr><tr><td class=CDLEntry><a name="GD_BSPLINE"></a>GD_BSPLINE</td><td class=CDLDescription>BSpline</td></tr><tr><td class=CDLEntry><a name="GD_CATMULLROM"></a>GD_CATMULLROM</td><td class=CDLDescription>Catmullrom</td></tr><tr><td class=CDLEntry><a name="GD_GAUSSIAN"></a>GD_GAUSSIAN</td><td class=CDLDescription>Gaussian</td></tr><tr><td class=CDLEntry><a name="GD_GENERALIZED_CUBIC"></a>GD_GENERALIZED_CUBIC</td><td class=CDLDescription>Generalized cubic</td></tr><tr><td class=CDLEntry><a name="GD_HERMITE"></a>GD_HERMITE</td><td class=CDLDescription>Hermite</td></tr><tr><td class=CDLEntry><a name="GD_HAMMING"></a>GD_HAMMING</td><td class=CDLDescription>Hamming</td></tr><tr><td class=CDLEntry><a name="GD_HANNING"></a>GD_HANNING</td><td class=CDLDescription>Hannig</td></tr><tr><td class=CDLEntry><a name="GD_MITCHELL"></a>GD_MITCHELL</td><td class=CDLDescription>Mitchell</td></tr><tr><td class=CDLEntry><a name="GD_NEAREST_NEIGHBOUR"></a>GD_NEAREST_NEIGHBOUR</td><td class=CDLDescription>Nearest neighbour interpolation</td></tr><tr><td class=CDLEntry><a name="GD_POWER"></a>GD_POWER</td><td class=CDLDescription>Power</td></tr><tr><td class=CDLEntry><a name="GD_QUADRATIC"></a>GD_QUADRATIC</td><td class=CDLDescription>Quadratic</td></tr><tr><td class=CDLEntry><a name="GD_SINC"></a>GD_SINC</td><td class=CDLDescription>Sinc</td></tr><tr><td class=CDLEntry><a name="GD_TRIANGLE"></a>GD_TRIANGLE</td><td class=CDLDescription>Triangle</td></tr><tr><td class=CDLEntry><a name="GD_WEIGHTED4"></a>GD_WEIGHTED4</td><td class=CDLDescription>4 pixels weighted bilinear interpolation</td></tr><tr><td class=CDLEntry><a name="GD_LINEAR"></a>GD_LINEAR</td><td class=CDLDescription>bilinear interpolation</td></tr></table><h4 class=CHeading>See also</h4><ul><li><a href="gd_interpolation-c.html#gdImageSetInterpolationMethod" class=LFunction id=link16 onMouseOver="ShowTip(event, 'tt13', 'link16')" onMouseOut="HideTip('tt13')">gdImageSetInterpolationMethod</a></li><li><a href="gd_interpolation-c.html#gdImageGetInterpolationMethod" class=LFunction id=link17 onMouseOver="ShowTip(event, 'tt14', 'link17')" onMouseOut="HideTip('tt14')">gdImageGetInterpolationMethod</a></li></ul></div></div></div> + +<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Types"></a>Types</h3></div></div> + +<div class="CType"><div class=CTopic><h3 class=CTitle><a name="gdImage"></a>gdImage</h3></div></div> + +<div class="CType"><div class=CTopic><h3 class=CTitle><a name="gdImagePtr"></a>gdImagePtr</h3><div class=CBody><p>The data structure in which gd stores images. <a href="gd-c.html#gdImageCreate" class=LFunction id=link18 onMouseOver="ShowTip(event, 'tt15', 'link18')" onMouseOut="HideTip('tt15')">gdImageCreate</a>, <a href="gd-c.html#gdImageCreateTrueColor" class=LFunction id=link19 onMouseOver="ShowTip(event, 'tt16', 'link19')" onMouseOut="HideTip('tt16')">gdImageCreateTrueColor</a> and the various image file-loading functions return a pointer to this type, and the other functions expect to receive a pointer to this type as their first argument.</p><p><b>gdImagePtr</b> is a pointer to <b>gdImage</b>.</p><h4 class=CHeading>See also</h4><p><a href="#Accessor_Macros" class=LGroup >Accessor Macros</a></p><p>(Previous versions of this library encouraged directly manipulating the contents ofthe struct but we are attempting to move away from this practice so the fields are no longer documented here. If you need to poke at the internals of this struct, feel free to look at <b>gd.h</b>.)</p></div></div></div> + +<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Types"></a>Types</h3></div></div> + +<div class="CType"><div class=CTopic><h3 class=CTitle><a name="gdPointF"></a>gdPointF</h3><div class=CBody><p>Defines a point in a 2D coordinate system using floating point values. x - Floating point position (increase from left to right) y - Floating point Row position (increase from top to bottom)</p></div></div></div> + +<div class="CType"><div class=CTopic><h3 class=CTitle><a name="gdPointFPtr"></a>gdPointFPtr</h3><div class=CBody><p>Pointer to a <a href="#gdPointF" class=LType id=link20 onMouseOver="ShowTip(event, 'tt1', 'link20')" onMouseOut="HideTip('tt1')">gdPointF</a></p><h4 class=CHeading>See also</h4><p><a href="gd-c.html#gdImageCreate" class=LFunction id=link21 onMouseOver="ShowTip(event, 'tt15', 'link21')" onMouseOut="HideTip('tt15')">gdImageCreate</a>, <a href="gd-c.html#gdImageCreateTrueColor" class=LFunction id=link22 onMouseOver="ShowTip(event, 'tt16', 'link22')" onMouseOut="HideTip('tt16')">gdImageCreateTrueColor</a>,</p></div></div></div> + +<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Types"></a>Types</h3></div></div> + +<div class="CType"><div class=CTopic><h3 class=CTitle><a name="gdFont"></a>gdFont</h3></div></div> + +<div class="CType"><div class=CTopic><h3 class=CTitle><a name="gdFontPtr"></a>gdFontPtr</h3><div class=CBody><p>A font structure, containing the bitmaps of all characters in a font. Used to declare the characteristics of a font. Text-output functions expect these as their second argument, following the <a href="#gdImagePtr" class=LType id=link23 onMouseOver="ShowTip(event, 'tt17', 'link23')" onMouseOut="HideTip('tt17')">gdImagePtr</a> argument. <a href="gdfonts-c.html#gdFontGetSmall" class=LFunction id=link24 onMouseOver="ShowTip(event, 'tt18', 'link24')" onMouseOut="HideTip('tt18')">gdFontGetSmall</a> and <a href="gdfontl-c.html#gdFontGetLarge" class=LFunction id=link25 onMouseOver="ShowTip(event, 'tt19', 'link25')" onMouseOut="HideTip('tt19')">gdFontGetLarge</a> both return one.</p><p>You can provide your own font data by providing such a structure and the associated pixel array. You can determine the width and height of a single character in a font by examining the w and h members of the structure. If you will not be creating your own fonts, you will not need to concern yourself with the rest of the components of this structure.</p><p>Please see the files gdfontl.c and gdfontl.h for an example of the proper declaration of this structure.</p><blockquote><pre>typedef struct { + // # of characters in font + int nchars; + // First character is numbered... (usually 32 = space) + int offset; + // Character width and height + int w; + int h; + // Font data; array of characters, one row after another. + // Easily included in code, also easily loaded from + // data files. + char *data; +} gdFont;</pre></blockquote><p>gdFontPtr is a pointer to gdFont.</p></div></div></div> + +<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Colors"></a>Colors</h3><div class=CBody><p>Colors are always of type int which is supposed to be at least 32 bit large.</p><h4 class=CHeading>Kinds of colors</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>true colors</td><td class=CDLDescription>ARGB values where the alpha channel is stored as most significant, and the blue channel as least significant byte. Note that the alpha channel only uses the 7 least significant bits. Don’t rely on the internal representation, though, and use <a href="#gdTrueColorAlpha" class=LMacro id=link26 onMouseOver="ShowTip(event, 'tt7', 'link26')" onMouseOut="HideTip('tt7')">gdTrueColorAlpha</a> to compose a truecolor value, and <a href="#gdTrueColorGetAlpha" class=LMacro id=link27 onMouseOver="ShowTip(event, 'tt20', 'link27')" onMouseOut="HideTip('tt20')">gdTrueColorGetAlpha</a>, <a href="#gdTrueColorGetRed" class=LMacro id=link28 onMouseOver="ShowTip(event, 'tt21', 'link28')" onMouseOut="HideTip('tt21')">gdTrueColorGetRed</a>, <a href="#gdTrueColorGetGreen" class=LMacro id=link29 onMouseOver="ShowTip(event, 'tt22', 'link29')" onMouseOut="HideTip('tt22')">gdTrueColorGetGreen</a> and <a href="#gdTrueColorGetBlue" class=LMacro id=link30 onMouseOver="ShowTip(event, 'tt23', 'link30')" onMouseOut="HideTip('tt23')">gdTrueColorGetBlue</a> to access the respective channels.</td></tr><tr><td class=CDLEntry>palette indexes</td><td class=CDLDescription>The index of a color palette entry (0-255).</td></tr><tr><td class=CDLEntry>special colors</td><td class=CDLDescription>As listed in the following section.</td></tr></table></div></div></div> + +<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="Special_Colors"></a>Special Colors</h3><div class=CBody><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry><a name="gdStyled"></a>gdStyled</td><td class=CDLDescription>use the current style, see <a href="gd-c.html#gdImageSetStyle" class=LFunction id=link31 onMouseOver="ShowTip(event, 'tt24', 'link31')" onMouseOut="HideTip('tt24')">gdImageSetStyle</a></td></tr><tr><td class=CDLEntry><a name="gdBrushed"></a>gdBrushed</td><td class=CDLDescription>use the current brush, see <a href="gd-c.html#gdImageSetBrush" class=LFunction id=link32 onMouseOver="ShowTip(event, 'tt25', 'link32')" onMouseOut="HideTip('tt25')">gdImageSetBrush</a></td></tr><tr><td class=CDLEntry><a name="gdStyledBrushed"></a>gdStyledBrushed</td><td class=CDLDescription>use the current style and brush</td></tr><tr><td class=CDLEntry><a name="gdTiled"></a>gdTiled</td><td class=CDLDescription>use the current tile, see <a href="gd-c.html#gdImageSetTile" class=LFunction id=link33 onMouseOver="ShowTip(event, 'tt26', 'link33')" onMouseOut="HideTip('tt26')">gdImageSetTile</a></td></tr><tr><td class=CDLEntry><a name="gdTransparent"></a>gdTransparent</td><td class=CDLDescription>indicate transparency, what is not the same as the transparent color index; used for lines only</td></tr><tr><td class=CDLEntry><a name="gdAntiAliased"></a>gdAntiAliased</td><td class=CDLDescription>draw anti aliased</td></tr></table></div></div></div> + +<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Types"></a>Types</h3></div></div> + +<div class="CType"><div class=CTopic><h3 class=CTitle><a name="gdSource"></a>gdSource</h3></div></div> + +<div class="CType"><div class=CTopic><h3 class=CTitle><a name="gdSourcePtr"></a>gdSourcePtr</h3><div class=CBody><p><b>Note:</b> This interface is <b>obsolete</b> and kept only for *compatibility. Use <a href="gd_io-h.html#gdIOCtx" class=LType id=link34 onMouseOver="ShowTip(event, 'tt27', 'link34')" onMouseOut="HideTip('tt27')">gdIOCtx</a> instead.</p><p>Represents a source from which a PNG can be read. Programmers who do not wish to read PNGs from a file can provide their own alternate input mechanism, using the <a href="gd_ss-c.html#gdImageCreateFromPngSource" class=LFunction id=link35 onMouseOver="ShowTip(event, 'tt28', 'link35')" onMouseOut="HideTip('tt28')">gdImageCreateFromPngSource</a> function. See the documentation of that function for an example of the proper use of this type.</p><blockquote><pre>typedef struct { + int (*source) (void *context, char *buffer, int len); + void *context; +} gdSource, *gdSourcePtr;</pre></blockquote><p>The source function must return -1 on error, otherwise the number of bytes fetched. 0 is EOF, not an error!</p><p>’context’ will be passed to your source function.</p></div></div></div> + +<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Types"></a>Types</h3></div></div> + +<div class="CType"><div class=CTopic><h3 class=CTitle><a name="gdFTStringExtra"></a>gdFTStringExtra</h3></div></div> + +<div class="CType"><div class=CTopic><h3 class=CTitle><a name="gdFTStringExtraPtr"></a>gdFTStringExtraPtr</h3><div class=CBody><p>A structure and associated pointer type used to pass additional parameters to the <a href="gdft-c.html#gdImageStringFTEx" class=LFunction id=link36 onMouseOver="ShowTip(event, 'tt2', 'link36')" onMouseOut="HideTip('tt2')">gdImageStringFTEx</a> function. See <a href="gdft-c.html#gdImageStringFTEx" class=LFunction id=link37 onMouseOver="ShowTip(event, 'tt2', 'link37')" onMouseOut="HideTip('tt2')">gdImageStringFTEx</a> for the structure definition.</p><p>Thanks to Wez Furlong.</p></div></div></div> + +<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Types"></a>Types</h3></div></div> + +<div class="CType"><div class=CTopic><h3 class=CTitle><a name="gdPoint"></a>gdPoint</h3></div></div> + +<div class="CType"><div class=CTopic><h3 class=CTitle><a name="gdPointPtr"></a>gdPointPtr</h3><div class=CBody><p>Represents a point in the coordinate space of the image; used by <a href="gd-c.html#gdImagePolygon" class=LFunction id=link38 onMouseOver="ShowTip(event, 'tt3', 'link38')" onMouseOut="HideTip('tt3')">gdImagePolygon</a>, <a href="gd-c.html#gdImageOpenPolygon" class=LFunction id=link39 onMouseOver="ShowTip(event, 'tt4', 'link39')" onMouseOut="HideTip('tt4')">gdImageOpenPolygon</a> and <a href="gd-c.html#gdImageFilledPolygon" class=LFunction id=link40 onMouseOver="ShowTip(event, 'tt5', 'link40')" onMouseOut="HideTip('tt5')">gdImageFilledPolygon</a> for polygon drawing.</p><blockquote><pre>typedef struct { + int x, y; +} gdPoint, *gdPointPtr;</pre></blockquote></div></div></div> + +<div class="CType"><div class=CTopic><h3 class=CTitle><a name="gdRect"></a>gdRect</h3><div class=CBody><p>A rectangle in the coordinate space of the image</p><h4 class=CHeading>Members</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>x</td><td class=CDLDescription>The x-coordinate of the upper left corner.</td></tr><tr><td class=CDLEntry>y</td><td class=CDLDescription>The y-coordinate of the upper left corner.</td></tr><tr><td class=CDLEntry>width</td><td class=CDLDescription>The width.</td></tr><tr><td class=CDLEntry>height</td><td class=CDLDescription>The height.</td></tr></table></div></div></div> + +<div class="CType"><div class=CTopic><h3 class=CTitle><a name="gdRectPtr"></a>gdRectPtr</h3><div class=CBody><p>A pointer to a <a href="#gdRect" class=LType id=link41 onMouseOver="ShowTip(event, 'tt6', 'link41')" onMouseOut="HideTip('tt6')">gdRect</a></p></div></div></div> + +<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Color_Composition"></a>Color Composition</h3></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdTrueColorAlpha"></a>gdTrueColorAlpha</h3><div class=CBody><p>Compose a truecolor value from its components</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>r</td><td class=CDLDescription>The red channel (0-255)</td></tr><tr><td class=CDLEntry>g</td><td class=CDLDescription>The green channel (0-255)</td></tr><tr><td class=CDLEntry>b</td><td class=CDLDescription>The blue channel (0-255)</td></tr><tr><td class=CDLEntry>a</td><td class=CDLDescription>The alpha channel (0-127, where 127 is fully transparent, and 0 is completely opaque).</td></tr></table><h4 class=CHeading>See also</h4><ul><li><a href="#gdTrueColorGetAlpha" class=LMacro id=link42 onMouseOver="ShowTip(event, 'tt20', 'link42')" onMouseOut="HideTip('tt20')">gdTrueColorGetAlpha</a></li><li><a href="#gdTrueColorGetRed" class=LMacro id=link43 onMouseOver="ShowTip(event, 'tt21', 'link43')" onMouseOut="HideTip('tt21')">gdTrueColorGetRed</a></li><li><a href="#gdTrueColorGetGreen" class=LMacro id=link44 onMouseOver="ShowTip(event, 'tt22', 'link44')" onMouseOut="HideTip('tt22')">gdTrueColorGetGreen</a></li><li><a href="#gdTrueColorGetBlue" class=LMacro id=link45 onMouseOver="ShowTip(event, 'tt23', 'link45')" onMouseOut="HideTip('tt23')">gdTrueColorGetBlue</a></li><li><a href="gd-c.html#gdImageColorExactAlpha" class=LFunction id=link46 onMouseOver="ShowTip(event, 'tt29', 'link46')" onMouseOut="HideTip('tt29')">gdImageColorExactAlpha</a></li></ul></div></div></div> + +<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="GifAnim"></a>GifAnim</h3><div class=CBody><p>Legal values for Disposal. gdDisposalNone is always used by the built-in optimizer if previm is passed.</p></div></div></div> + +<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="gdImageGifAnim"></a>gdImageGifAnim</h3><div class=CBody><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry><a name="gdDisposalUnknown"></a>gdDisposalUnknown</td><td class=CDLDescription>Not recommended</td></tr><tr><td class=CDLEntry><a name="gdDisposalNone"></a>gdDisposalNone</td><td class=CDLDescription>Preserve previous frame</td></tr><tr><td class=CDLEntry><a name="gdDisposalRestoreBackground"></a>gdDisposalRestoreBackground</td><td class=CDLDescription>First allocated color of palette</td></tr><tr><td class=CDLEntry><a name="gdDisposalRestorePrevious"></a>gdDisposalRestorePrevious</td><td class=CDLDescription>Restore to before start of frame</td></tr></table><h4 class=CHeading>See also</h4><ul><li><a href="gd_gif_out-c.html#gdImageGifAnimAdd" class=LFunction id=link47 onMouseOver="ShowTip(event, 'tt30', 'link47')" onMouseOut="HideTip('tt30')">gdImageGifAnimAdd</a></li></ul></div></div></div> + +<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Types"></a>Types</h3></div></div> + +<div class="CType"><div class=CTopic><h3 class=CTitle><a name="gdSink"></a>gdSink</h3></div></div> + +<div class="CType"><div class=CTopic><h3 class=CTitle><a name="gdSinkPtr"></a>gdSinkPtr</h3><div class=CBody><p><b>Note:</b> This interface is <b>obsolete</b> and kept only for <b>compatibility</b>. Use <a href="gd_io-h.html#gdIOCtx" class=LType id=link48 onMouseOver="ShowTip(event, 'tt27', 'link48')" onMouseOut="HideTip('tt27')">gdIOCtx</a> instead.</p><p>Represents a “sink” (destination) to which a PNG can be written. Programmers who do not wish to write PNGs to a file can provide their own alternate output mechanism, using the <a href="gd_ss-c.html#gdImagePngToSink" class=LFunction id=link49 onMouseOver="ShowTip(event, 'tt31', 'link49')" onMouseOut="HideTip('tt31')">gdImagePngToSink</a> function. See the documentation of that function for an example of the proper use of this type.</p><blockquote><pre>typedef struct { + int (*sink) (void *context, char *buffer, int len); + void *context; +} gdSink, *gdSinkPtr;</pre></blockquote><p>The <u>sink</u> function must return -1 on error, otherwise the number of bytes written, which must be equal to len.</p><p><u>context</u> will be passed to your sink function.</p></div></div></div> + +<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Accessor_Macros"></a>Accessor Macros</h3></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdImageTrueColor"></a>gdImageTrueColor</h3><div class=CBody><p>Whether an image is a truecolor image.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>im</td><td class=CDLDescription>The image.</td></tr></table><h4 class=CHeading>Returns</h4><p>Non-zero if the image is a truecolor image, zero for palette images.</p></div></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdImageSX"></a>gdImageSX</h3><div class=CBody><p>Gets the width (in pixels) of an image.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>im</td><td class=CDLDescription>The image.</td></tr></table></div></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdImageSY"></a>gdImageSY</h3><div class=CBody><p>Gets the height (in pixels) of an image.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>im</td><td class=CDLDescription>The image.</td></tr></table></div></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdImageColorsTotal"></a>gdImageColorsTotal</h3><div class=CBody><p>Gets the number of colors in the palette.</p><p>This macro is only valid for palette images.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>im</td><td class=CDLDescription>The image</td></tr></table></div></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdImageRed"></a>gdImageRed</h3><div class=CBody><p>Gets the red component value of a given color.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>im</td><td class=CDLDescription>The image.</td></tr><tr><td class=CDLEntry>c</td><td class=CDLDescription>The color.</td></tr></table></div></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdImageGreen"></a>gdImageGreen</h3><div class=CBody><p>Gets the green component value of a given color.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>im</td><td class=CDLDescription>The image.</td></tr><tr><td class=CDLEntry>c</td><td class=CDLDescription>The color.</td></tr></table></div></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdImageBlue"></a>gdImageBlue</h3><div class=CBody><p>Gets the blue component value of a given color.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>im</td><td class=CDLDescription>The image.</td></tr><tr><td class=CDLEntry>c</td><td class=CDLDescription>The color.</td></tr></table></div></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdImageAlpha"></a>gdImageAlpha</h3><div class=CBody><p>Gets the alpha component value of a given color.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>im</td><td class=CDLDescription>The image.</td></tr><tr><td class=CDLEntry>c</td><td class=CDLDescription>The color.</td></tr></table></div></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdImageGetTransparent"></a>gdImageGetTransparent</h3><div class=CBody><p>Gets the transparent color of the image.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>im</td><td class=CDLDescription>The image.</td></tr></table><h4 class=CHeading>See also</h4><ul><li><a href="gd-c.html#gdImageColorTransparent" class=LFunction id=link50 onMouseOver="ShowTip(event, 'tt32', 'link50')" onMouseOut="HideTip('tt32')">gdImageColorTransparent</a></li></ul></div></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdImageGetInterlaced"></a>gdImageGetInterlaced</h3><div class=CBody><p>Whether an image is interlaced.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>im</td><td class=CDLDescription>The image.</td></tr></table><h4 class=CHeading>Returns</h4><p>Non-zero for interlaced images, zero otherwise.</p><h4 class=CHeading>See also</h4><ul><li><a href="gd-c.html#gdImageInterlace" class=LFunction id=link51 onMouseOver="ShowTip(event, 'tt33', 'link51')" onMouseOut="HideTip('tt33')">gdImageInterlace</a></li></ul></div></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdImagePalettePixel"></a>gdImagePalettePixel</h3><div class=CBody><p>Gets the color of a pixel.</p><p>Calling this macro is only valid for palette images. No bounds checking is done for the coordinates.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>im</td><td class=CDLDescription>The image.</td></tr><tr><td class=CDLEntry>x</td><td class=CDLDescription>The x-coordinate.</td></tr><tr><td class=CDLEntry>y</td><td class=CDLDescription>The y-coordinate.</td></tr></table><h4 class=CHeading>See also</h4><ul><li><a href="#gdImageTrueColorPixel" class=LMacro id=link52 onMouseOver="ShowTip(event, 'tt34', 'link52')" onMouseOut="HideTip('tt34')">gdImageTrueColorPixel</a></li><li><a href="gd-c.html#gdImageGetPixel" class=LFunction id=link53 onMouseOver="ShowTip(event, 'tt35', 'link53')" onMouseOut="HideTip('tt35')">gdImageGetPixel</a></li></ul></div></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdImageTrueColorPixel"></a>gdImageTrueColorPixel</h3><div class=CBody><p>Gets the color of a pixel.</p><p>Calling this macro is only valid for truecolor images. No bounds checking is done for the coordinates.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>im</td><td class=CDLDescription>The image.</td></tr><tr><td class=CDLEntry>x</td><td class=CDLDescription>The x-coordinate.</td></tr><tr><td class=CDLEntry>y</td><td class=CDLDescription>The y-coordinate.</td></tr></table><h4 class=CHeading>See also</h4><ul><li><a href="#gdImagePalettePixel" class=LMacro id=link54 onMouseOver="ShowTip(event, 'tt36', 'link54')" onMouseOut="HideTip('tt36')">gdImagePalettePixel</a></li><li><a href="gd-c.html#gdImageGetTrueColorPixel" class=LFunction id=link55 onMouseOver="ShowTip(event, 'tt37', 'link55')" onMouseOut="HideTip('tt37')">gdImageGetTrueColorPixel</a></li></ul></div></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdImageResolutionX"></a>gdImageResolutionX</h3><div class=CBody><p>Gets the horizontal resolution in DPI.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>im</td><td class=CDLDescription>The image.</td></tr></table><h4 class=CHeading>See also</h4><ul><li><a href="#gdImageResolutionY" class=LMacro id=link56 onMouseOver="ShowTip(event, 'tt38', 'link56')" onMouseOut="HideTip('tt38')">gdImageResolutionY</a></li><li><a href="gd-c.html#gdImageSetResolution" class=LFunction id=link57 onMouseOver="ShowTip(event, 'tt39', 'link57')" onMouseOut="HideTip('tt39')">gdImageSetResolution</a></li></ul></div></div></div> + +<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="gdImageResolutionY"></a>gdImageResolutionY</h3><div class=CBody><p>Gets the vertical resolution in DPI.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>im</td><td class=CDLDescription>The image.</td></tr></table><h4 class=CHeading>See also</h4><ul><li><a href="#gdImageResolutionX" class=LMacro id=link58 onMouseOver="ShowTip(event, 'tt40', 'link58')" onMouseOut="HideTip('tt40')">gdImageResolutionX</a></li><li><a href="gd-c.html#gdImageSetResolution" class=LFunction id=link59 onMouseOver="ShowTip(event, 'tt39', 'link59')" onMouseOut="HideTip('tt39')">gdImageSetResolution</a></li></ul></div></div></div> + +<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Crop"></a>Crop</h3></div></div> + +<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="gdCropMode"></a>gdCropMode</h3><div class=CBody><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry><a name="GD_CROP_DEFAULT"></a>GD_CROP_DEFAULT</td><td class=CDLDescription>Same as GD_CROP_TRANSPARENT</td></tr><tr><td class=CDLEntry><a name="GD_CROP_TRANSPARENT"></a>GD_CROP_TRANSPARENT</td><td class=CDLDescription>Crop using the transparent color</td></tr><tr><td class=CDLEntry><a name="GD_CROP_BLACK"></a>GD_CROP_BLACK</td><td class=CDLDescription>Crop black borders</td></tr><tr><td class=CDLEntry><a name="GD_CROP_WHITE"></a>GD_CROP_WHITE</td><td class=CDLDescription>Crop white borders</td></tr><tr><td class=CDLEntry><a name="GD_CROP_SIDES"></a>GD_CROP_SIDES</td><td class=CDLDescription>Crop using colors of the 4 corners</td></tr></table><h4 class=CHeading>See also</h4><ul><li><a href="gd_crop-c.html#gdImageCropAuto" class=LFunction id=link60 onMouseOver="ShowTip(event, 'tt41', 'link60')" onMouseOut="HideTip('tt41')">gdImageCropAuto</a></li></ul></div></div></div> + +<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Image_Comparison"></a>Image Comparison</h3><div class=CBody><h4 class=CHeading>Constants</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>GD_CMP_IMAGE</td><td class=CDLDescription>Actual image IS different</td></tr><tr><td class=CDLEntry>GD_CMP_NUM_COLORS</td><td class=CDLDescription>Number of colors in pallette differ</td></tr><tr><td class=CDLEntry>GD_CMP_COLOR</td><td class=CDLDescription>Image colors differ</td></tr><tr><td class=CDLEntry>GD_CMP_SIZE_X</td><td class=CDLDescription>Image width differs</td></tr><tr><td class=CDLEntry>GD_CMP_SIZE_Y</td><td class=CDLDescription>Image heights differ</td></tr><tr><td class=CDLEntry>GD_CMP_TRANSPARENT</td><td class=CDLDescription>Transparent color differs</td></tr><tr><td class=CDLEntry>GD_CMP_BACKGROUND</td><td class=CDLDescription>Background color differs</td></tr><tr><td class=CDLEntry>GD_CMP_INTERLACE</td><td class=CDLDescription>Interlaced setting differs</td></tr><tr><td class=CDLEntry>GD_CMP_TRUECOLOR</td><td class=CDLDescription>Truecolor vs palette differs</td></tr></table><h4 class=CHeading>See also</h4><ul><li><a href="gd-c.html#gdImageCompare" class=LFunction id=link61 onMouseOver="ShowTip(event, 'tt42', 'link61')" onMouseOut="HideTip('tt42')">gdImageCompare</a></li></ul></div></div></div> + +</div><!--Content--> + + +<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer--> + + +<div id=Menu><div class=MEntry><div class=MFile><a href="preamble-txt.html">About LibGD 2.<wbr>3.0-dev</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Image Formats</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MFile><a href="gd_bmp-c.html">BMP IO</a></div></div><div class=MEntry><div class=MFile><a href="gd_gd-c.html">GD IO</a></div></div><div class=MEntry><div class=MFile><a href="gd_gd2-c.html">GD2 IO</a></div></div><div class=MEntry><div class=MFile><a href="gd_gif_in-c.html">GIF Input</a></div></div><div class=MEntry><div class=MFile><a href="gd_gif_out-c.html">GIF Output</a></div></div><div class=MEntry><div class=MFile><a href="gd_jpeg-c.html">JPEG IO</a></div></div><div class=MEntry><div class=MFile><a href="gd_png-c.html">PNG IO</a></div></div><div class=MEntry><div class=MFile><a href="gd_tga-c.html">TGA Input</a></div></div><div class=MEntry><div class=MFile><a href="gd_tiff-c.html">TIFF IO</a></div></div><div class=MEntry><div class=MFile><a href="gd_wbmp-c.html">WBMP IO</a></div></div><div class=MEntry><div class=MFile><a href="gd_webp-c.html">WebP IO</a></div></div><div class=MEntry><div class=MFile><a href="gd_xbm-c.html">XBM IO</a></div></div><div class=MEntry><div class=MFile><a href="gdxpm-c.html">XPM Input</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="gd_topal-c.html">Color Quantization</a></div></div><div class=MEntry><div class=MFile><a href="gd_crop-c.html">Cropping</a></div></div><div class=MEntry><div class=MFile><a href="gdft-c.html">FreeType font rendering</a></div></div><div class=MEntry><div class=MFile><a href="gd-c.html">gd.c</a></div></div><div class=MEntry><div class=MFile id=MSelected>gd.h</div></div><div class=MEntry><div class=MFile><a href="gd_filename-c.html">gd_filename.c</a></div></div><div class=MEntry><div class=MFile><a href="gd_interpolation-c.html">gd_interpolation.c</a></div></div><div class=MEntry><div class=MFile><a href="gd_io-h.html">gd_io.h</a></div></div><div class=MEntry><div class=MFile><a href="gd_io_dp-c.html">gd_io_dp.c</a></div></div><div class=MEntry><div class=MFile><a href="gd_ss-c.html">gd_ss.c</a></div></div><div class=MEntry><div class=MFile><a href="gd_version-c.html">gd_version.c</a></div></div><div class=MEntry><div class=MFile><a href="gd_color_map-c.html">gdColorMapLookup</a></div></div><div class=MEntry><div class=MFile><a href="gdhelpers-c.html">gdFree</a></div></div><div class=MEntry><div class=MFile><a href="gdfx-c.html">gdfx.c</a></div></div><div class=MEntry><div class=MFile><a href="gd_color_match-c.html">gdImageColorMatch</a></div></div><div class=MEntry><div class=MFile><a href="gd_nnquant-c.html">gdImageNeuQuant</a></div></div><div class=MEntry><div class=MFile><a href="gd_io_file-c.html">gdNewFileCtx</a></div></div><div class=MEntry><div class=MFile><a href="gd_io_ss-c.html">gdNewSSCtx</a></div></div><div class=MEntry><div class=MFile><a href="gd_filter-c.html">Image Filters</a></div></div><div class=MEntry><div class=MFile><a href="license-txt.html">License</a></div></div><div class=MEntry><div class=MFile><a href="gd_matrix-c.html">Matrix</a></div></div><div class=MEntry><div class=MFile><a href="gd_transform-c.html">Transformations</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent2')">Built-in Fonts</a><div class=MGroupContent id=MGroupContent2><div class=MEntry><div class=MFile><a href="gdfontg-c.html">Giant Font</a></div></div><div class=MEntry><div class=MFile><a href="gdfontl-c.html">Large Font</a></div></div><div class=MEntry><div class=MFile><a href="gdfontmb-c.html">Medium Bold Font</a></div></div><div class=MEntry><div class=MFile><a href="gdfonts-c.html">Small Font</a></div></div><div class=MEntry><div class=MFile><a href="gdfontt-c.html">Tiny Font</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent3')">Index</a><div class=MGroupContent id=MGroupContent3><div class=MEntry><div class=MIndex><a href="../index/Constants.html">Constants</a></div></div><div class=MEntry><div class=MIndex><a href="../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Files.html">Files</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Functions.html">Functions</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Macros.html">Macros</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Types.html">Types</a></div></div></div></div></div><script type="text/javascript"><!-- +var searchPanel = new SearchPanel("searchPanel", "HTML", "../search"); +--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option id=MSearchEverything selected value="General">Everything</option><option value="Constants">Constants</option><option value="Files">Files</option><option value="Functions">Functions</option><option value="Macros">Macros</option><option value="Types">Types</option></select></div><script language=JavaScript><!-- +HideAllBut([], 4);// --></script></div><!--Menu--> + + + +<!--START_ND_TOOLTIPS--> +<div class=CToolTip id="tt1"><div class=CType>Defines a point in a 2D coordinate system using floating point values. </div></div><div class=CToolTip id="tt2"><div class=CFunction>gdImageStringFTEx extends the capabilities of gdImageStringFT by providing a way to pass additional parameters.</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>void gdImagePolygon (</td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>gdPointPtr </td><td class="PParameter prettyprint " nowrap>p,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>n,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>c</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Draws a closed polygon</div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>void gdImageOpenPolygon (</td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>gdPointPtr </td><td class="PParameter prettyprint " nowrap>p,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>n,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>c</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Draws an open polygon</div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>void gdImageFilledPolygon (</td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>gdPointPtr </td><td class="PParameter prettyprint " nowrap>p,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>n,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>c</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Draws a filled polygon</div></div><div class=CToolTip id="tt6"><div class=CType>A rectangle in the coordinate space of the image</div></div><div class=CToolTip id="tt7"><div class=CMacro>Compose a truecolor value from its components</div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>int gdAlphaBlend (</td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>dst,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>src</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Blend two colors</div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>int gdLayerOverlay (</td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>dst,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>src</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Overlay two colors</div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>int gdLayerMultiply (</td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>dst,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>src</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Overlay two colors with multiply effect</div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>void gdImageAlphaBlending (</td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>alphaBlendingArg</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Set the effect for subsequent drawing operations</div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>int gdImageTrueColorToPaletteSetMethod (</td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>method,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>speed</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Selects the quantization method</div></div><div class=CToolTip id="tt13"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>int gdImageSetInterpolationMethod(</td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>gdInterpolationMethod </td><td class="PParameter prettyprint " nowrap>id</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Set the interpolation method for subsequent operations</div></div><div class=CToolTip id="tt14"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>gdInterpolationMethod gdImageGetInterpolationMethod(</td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Get the current interpolation method</div></div><div class=CToolTip id="tt15"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>gdImagePtr gdImageCreate (</td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>sx,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>sy</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>gdImageCreate is called to create palette-based images, with no more than 256 colors. </div></div><div class=CToolTip id="tt16"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>gdImagePtr gdImageCreateTrueColor (</td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>sx,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>sy</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>gdImageCreateTrueColor is called to create truecolor images, with an essentially unlimited number of colors. </div></div><div class=CToolTip id="tt17"><div class=CType>The data structure in which gd stores images. </div></div><div class=CToolTip id="tt18"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>gdFontPtr gdFontGetSmall (</td><td class="PParameter prettyprint " nowrap>void</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the built-in small font.</div></div><div class=CToolTip id="tt19"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>gdFontPtr gdFontGetLarge (</td><td class="PParameter prettyprint " nowrap>void</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the built-in large font.</div></div><div class=CToolTip id="tt20"><div class=CMacro>Gets the alpha channel value</div></div><div class=CToolTip id="tt21"><div class=CMacro>Gets the red channel value</div></div><div class=CToolTip id="tt22"><div class=CMacro>Gets the green channel value</div></div><div class=CToolTip id="tt23"><div class=CMacro>Gets the blue channel value</div></div><div class=CToolTip id="tt24"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>void gdImageSetStyle (</td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>im,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>style,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>noOfPixels</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the style for following drawing operations</div></div><div class=CToolTip id="tt25"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>void gdImageSetBrush (</td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>brush</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the brush for following drawing operations</div></div><div class=CToolTip id="tt26"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>void gdImageSetTile (</td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>tile</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt27"><div class=CType>gdIOCtx structures hold function pointers for doing image IO.</div></div><div class=CToolTip id="tt28"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>gdImagePtr gdImageCreateFromPngSource (</td><td class="PType prettyprint " nowrap>gdSourcePtr </td><td class="PParameter prettyprint " nowrap>inSource</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>See gdImageCreateFromPng for documentation. </div></div><div class=CToolTip id="tt29"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>int gdImageColorExactAlpha (</td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>r,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>g,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>b,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>a</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Gets the exact color of the image</div></div><div class=CToolTip id="tt30"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>void gdImageGifAnimAdd(</td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>im,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>FILE </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>outFile,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>LocalCM,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>LeftOfs,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>TopOfs,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>Delay,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>Disposal,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>previm</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>This function writes GIF animation frames to GIF animation, which was initialized with gdImageGifAnimBegin. </div></div><div class=CToolTip id="tt31"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>void gdImagePngToSink (</td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>gdSinkPtr </td><td class="PParameter prettyprint " nowrap>outSink</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt32"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>void gdImageColorTransparent (</td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>color</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the transparent color of the image</div></div><div class=CToolTip id="tt33"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>void gdImageInterlace (</td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>interlaceArg</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets whether an image is interlaced</div></div><div class=CToolTip id="tt34"><div class=CMacro>Gets the color of a pixel.</div></div><div class=CToolTip id="tt35"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>int gdImageGetPixel (</td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>x,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>y</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Gets a pixel color as stored in the image.</div></div><div class=CToolTip id="tt36"><div class=CMacro>Gets the color of a pixel.</div></div><div class=CToolTip id="tt37"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>int gdImageGetTrueColorPixel (</td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>x,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>y</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Gets a pixel color always as truecolor value.</div></div><div class=CToolTip id="tt38"><div class=CMacro>Gets the vertical resolution in DPI.</div></div><div class=CToolTip id="tt39"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>void gdImageSetResolution(</td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap>const unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>res_x,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap>const unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>res_y</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the resolution of an image.</div></div><div class=CToolTip id="tt40"><div class=CMacro>Gets the horizontal resolution in DPI.</div></div><div class=CToolTip id="tt41"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>gdImagePtr gdImageCropAuto(</td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap>const unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap>mode</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Crop an image automatically</div></div><div class=CToolTip id="tt42"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>int gdImageCompare (</td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im1,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>gdImagePtr </td><td class="PParameter prettyprint " nowrap>im2</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Compare two images</div></div><!--END_ND_TOOLTIPS--> + + + + +<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div> + + +<script language=JavaScript><!-- +if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
\ No newline at end of file |