⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.html

📁 Linux/Unix下的绘图函数库(Graphic Drawing Library)
💻 HTML
📖 第 1 页 / 共 5 页
字号:
setting the gdFTEX_FONTPATHNAME flagin the flag element of the gdFTStringExtra structure. Thanks toDag Lem and John Ellson.<li>Additional freetype fixes: fixed width fonts are now the rightsize, horizontal advance calculations now better match thePostScript equivalent, and various compiler warning fixes. Also,a fix to the encoding table selection in the was made, addressing a problemwith latin1 font encodings. Thanks to Dag Lem and John Ellson. <li>Improved tolerance when reading JPEG files containing some garbage as wellas valid image data.<li>Easier compilation on Windows: no errno.h in gd_gd2.c.<li>Support for creating optimized GIF animations has been added by Jaakko Hyv&auml;tti.  See <A HREF="#gdImageGifAnimAdd">gdImageGifAnimAdd</A>, <A HREF="#gdImageGifAnimAddCtx">gdImageGifAnimAddCtx</A>, <A HREF="#gdImageGifAnimAddPtr">gdImageGifAnimAddPtr</A>, <A HREF="#gdImageGifAnimBegin">gdImageGifAnimBegin</A>, <A HREF="#gdImageGifAnimBeginCtx">gdImageGifAnimBeginCtx</A>, <A HREF="#gdImageGifAnimBeginPtr">gdImageGifAnimBeginPtr</A>, <A HREF="#gdImageGifAnimEnd">gdImageGifAnimEnd</A>, <A HREF="#gdImageGifAnimEndCtx">gdImageGifAnimEndCtx</A>, and <A HREF="#gdImageGifAnimEndPtr">gdImageGifAnimEndPtr</A>.<li><A HREF="#gdImageOpenPolygon">gdImageOpenPolygon</A> has been added to allow consecutive line segments to be drawn without connecting the end points to form a closed polygon. Thanks toJaakko Hyv&auml;tti.<li>Better alpha channel blending when the destination colorcontains an alpha channel. Also, quicker handling of themost common cases. Thanks to Frank Warmerdam.</ul><P><A NAME="whatsnew2.0.28"><H3>What's new in version 2.0.28?</H3></A><P><ul><li>GIF support has been restored. See<a href="#gdImageGif">gdImageGif</a>, <a href="#gdImageGifCtx">gdImageGifCtx</a>, <a href="#gdImageGifPtr">gdImageGifPtr</a>, <a href="#gdImageCreateFromGif">gdImageCreateFromGif</a>, <a href="#gdImageCreateFromGifCtx">gdImageCreateFromGifCtx</a>, and <a href="#gdImageCreateFromGifPtr">gdImageCreateFromGifPtr</a>.These functions are now thread-safe, similar to the PNG and JPEGmanipulation functions.<li>The new <a href="#gdImageCreatePaletteFromTrueColor">gdImageCreatePaletteFromTrueColor</a> function is identical to <a href="#gdImageTrueColorToPalette">gdImageTrueColorToPalette</a>, except that it returns a new image rather than permanently modifying the original.</ul><P><A NAME="whatsnew2.0.27"><H3>What's new in version 2.0.27?</H3></A><P><ul><li>In gd 2.0.26, there was potential for out of bounds fills, and thereforecrashes, in the horizontalLine function used by gdImageFilledPolygon.Fixed by John Ellson.<li>The order of the points returned in the bounding rectangle bygdImageStringFT was incorrect in version 2.0.26. This has beencorrected in version 2.0.27. Thanks to Riccardo Cohen for pointingthis out, and to John Ellson for verifying and fixing it.</ul><P><A NAME="whatsnew2.0.26"><H3>What's new in version 2.0.26?</H3></A><P>The following enhancements and fixes:<ul><li>Drastically faster, less memory-intensive antialiased drawing, thanks toPierre-Alain Joye. This code was imported from the PHP "fork"of gd. The API for antialiased drawing has not changed, however theimplementation has been completely replaced.Antialiased line drawing does not support widths otherthan 1, however this did not work properly with the otherimplementation of antialiasing either. Support has been includedfor the "non-blending color" option introduced by the previousimplementation of antialiased drawing.<li><code>gdlib-config</code>, which has been installed by <code>make install</code> for some time now, has gaineda <code>--features</code> option. This option produces a space-separatedlist of optional features with which the gd library was compiled.Typical usage looks like this:<pre>% gdlib-config --featuresGD_XPM GD_JPEG GD_FREETYPE GD_PNG GD_GIF</pre>Other <code>configure</code> scripts can conveniently definepreprocessor symbols based on this list in order to conditionallycompile code. For instance, ifGD_PNG is not reported by --features, then gdImagePng is notincluded in the library.<p>Thanks to Lars Hecking and Lincoln Stein for their advice onimplementing this feature. Any blame for the actual implementationis entirely due to me (TBB).<li>Fixes to the behavior of the bounding rectangle returned bygdImageStringFT and relatives when the string is rotated.See fontwheeltest.c. Thanks to John Ellson.<li>Previously, gdImageStringFT and friends accepted either a full path to a font file, or the name of a font with noextension, in which case the GDFONTPATH environment variableand then the compiled-in DEFAULT_FONTPATH was searched. In addition,a font filename with an extension but no full path can now beautomatically searched for in the same fashion. Thanks to John Ellson.<li>Fixes to freetype antialiased text against a transparent background. See testtr.c. Thanks to John Ellson.<li>Support for named entities like &amp;amp; and hex-coded entities such as &amp;#x6C34; in text strings passed to gdImageStringFT and relatives, adding to the previous support for decimal-coded entities like &amp;#197;. These were extracted from entities.html (from the W3C) viathe script entities.tcl, which is included for the curious andthose with other entities they need support for.  Thanks to John Ellson.<li>Optimization: gdImageSetPixel no longer calls gdImageAlphaBlend when either the source or the destination pixel is 100% transparent. Thanks to John Ellson.<li>Optimization: gdImageLine is potentially faster now in the most common cases.Thanks to John Ellson.<li>Documentation of the entities feature of gdImageStringFT.<li>autoconf/configure fixes. Thanks to many who pointed out an oversightin handling libpng flags.</ul><P><A NAME="whatsnew2.0.25"><H3>What's new in version 2.0.25?</H3></A><P>Owing to an oversight while making changes to better accommodate the useof gd as a DLL, the <b>extern</b> qualifier was dropped from the declarations of font pointers in 2.0.24. This has been corrected.Thanks to Richard ("OpenMacNews").<P><A NAME="whatsnew2.0.24"><H3>What's new in version 2.0.24?</H3></A><P><b>Windows DLL now uses __stdcall calling convention.</b> Existingapplications will require a recompile, using the new version of gd.h,in order to use this version of the DLL. However, Visual BASIC and othernon-C programmers will now be able to use the DLL, which is an enormousbenefit and justifies the one-time inconvenience to existing DLL users. <p>The elaborate #ifdef test for older versions of Freetype withoutFT_ENCODING_MS_SYMBOL was needed in a second place also. Thanks toDavid R. Morrison.<p>An off-by-one error in gdImageToPalette caused transparency to be appliedto the wrong pixels. Thanks to "Super Pikeman."<P><A NAME="whatsnew2.0.23"><H3>What's new in version 2.0.23?</H3></A><P>Output dpi specification option added to the<code>gdFTStringExtra</code> structure, thanks toMark Shackelford. See <a href="#gdImageStringFTEx">gdImageStringFTEx</a>.<P><A NAME="whatsnew2.0.22"><H3>What's new in version 2.0.22?</H3></A><P><ul><li>Win32 DLL users: working with pointers exported by DLLs is difficult and causes unexpected results. gd 2.0.22 exports newfunctions for retrieving the basic gd fonts:<a href="#gdFontGetTiny">gdFontGetTiny()</a>,<a href="#gdFontGetSmall">gdFontGetSmall()</a>,<a href="#gdFontGetMediumBold">gdFontGetMediumBold()</a>,<a href="#gdFontGetLarge">gdFontGetLarge()</a>, and<a href="#gdFontGetHuge">gdFontGetHuge()</a>. You may safely assign thereturn values from these functions to a local <code>gdFontPtr</code>.Direct use of <code>gdFontLarge</code>, etc. is strongly deprecatedfor users of <code>bgd.dll</code>; use these new functions instead.<li>Basic support for loading CMYK-colorspace JPEG images. They areof course converted to RGB which is a lossy process, however theresults do look quite good and are certainly fine for thumbnails andweb previews of DTP work.<li>"make" no longer fails on <code>circletexttest</code> if PNG support is missing. <li>Small performance improvements to gdImageCopyResampled; largerimprovements are forthcoming.</ul><P><A NAME="whatsnew2.0.21"><H3>What's new in version 2.0.21?</H3></A><P><ul><li>Version 2.0.21 adds a <code>gdImageCreateFrom*Ptr</code> familyof functions which make it convenient to load an image in anyGD-supported format directly from memory.<li>The new <code>gdNewDynamicCtxEx</code> function was added tosupport the easy implementation of the above functions and tocorrect a design problem which made life unpleasant for those passingin memory not originally allocated by gd to the <code>gdNewDynamicCtx</code> function by provoding a way to specifythat gd should never free or reallocate a particular block of memory.The <code>gdNewDynamicCtx</code> function and its relatives, althoughstill exported for ABI compatibility, are now <b>deprecated</b> except for internal use, in favor of <a href="#gdImageCreateFromPngPtr"><code>gdImageCreateFromPngPtr</code></a>and its relatives.<li>Version 2.0.21 includes a new patch from Ethan A. Merritt tocorrect a bug in the conditional compilation of support forsymbol fonts in gdft.c. Symbol fonts should now work correctly.Thanks to Mr. Merritt.<li>Version 2.0.20 restores the <code>gdFreeFontCache</code> function,an undocumented function added in an earlier release which now simplycalls <code>gdFontCacheShutdown</code> for backwards compatibility.This repairs build problems when compiling PHP against the latest gd.<li>Documentation improvements.</ul><P><A NAME="whatsnew2.0.20"><H3>What's new in version 2.0.20?</H3></A><P><ul><li>Version 2.0.20 restores the <code>gdFreeFontCache</code> function,an undocumented function added in an earlier release which now simplycalls <code>gdFontCacheShutdown</code> for backwards compatibility.This repairs build problems when compiling PHP against the latest gd.</ul><P><A NAME="whatsnew2.0.19"><H3>What's new in version 2.0.19?</H3></A><P><ul><li>Version 2.0.19 restored <code>extern</code> declarations for thegd font pointers inadvertently removed in 2.0.18.</ul><P><A NAME="whatsnew2.0.18"><H3>What's new in version 2.0.18?</H3></A><P><ul><li>A Win32 binary distribution of "bgd.dll," built with mingw32 andtested with win32 versions of the demo programs as console applications,is now available.<li>Semicolon rather than space used as the default separator ofalternative font file paths in <a href="#gdImageStringFT">gdImageStringFT</a>,for better compatibility with Windows and other environments wherespaces are common in paths.<li>The circletexttest demo no longer fails to compile when JPEGsupport happens to be absent.</ul><P><A NAME="whatsnew2.0.17"><H3>What's new in version 2.0.17?</H3></A><P>Minor compilation and packaging problems with 2.0.16 were corrected.If 2.0.16 compiled without errors for you, then you don't needto upgrade to 2.0.17.<P><A NAME="whatsnew2.0.16"><H3>What's new in version 2.0.16?</H3></A><P><ul><li>Thread safety for freetype text output. Background: all gd functionswere already thread safe, as long as only one thread manipulates eachimage -- except for gdImageStringFT and gdImageStringFTEx. This is becauseof a shared freetype font cache. Sharing the cache between imagesis worthwhile, so "configure" now detects pthreads and uses it towrap freetype text output in a critical section if available. There isalso critical section support under WIN32. Those who wish to bestrictly thread-safe should call the new function<a href="#gdFontCacheSetup">gdFontCacheSetup</a> before allowing anythread to use freetype text calls. Otherwise this function is automaticallyinvoked on the first use of freetype, with a very small but real chanceof a race condition.<li><a href="#gdImageSquareToCircle">gdImageSquareToCircle</a> performsa "polar coordinate transform," returning a new image in which theX axis of the original has been remapped to theta (angle) and theY axis of the original has been remapped to rho (distance from center).<li><a href="#gdImageStringFTCircle">gdImageStringFTCircle</a> wrapstext in a circle around a specified center point. This function takes advantage of <a href="#gdImageSquareToCircle">gdImageSquareToCircle</a>.The result is very smooth, although it takes some time to compute.Thanks to Steve Bassi for sponsoring this work.<li><a href="#gdImageSharpen">gdImageSharpen</a>, contributed byPaul Troughton. Thank you.<li>Christophe Thomas corrected gdft.c to include freetype headerfiles in the way that is now mandatory in freetype 2.1.6 and above.<li>Gustavo Scotti fixed a memory leak in gdft.c.<li>Clipping rectangle respected in freetype text output. Thanks to Matt

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -