Pierre Muller 04ad7a2e2d Regenerate all packages Makefile's after merge of MR1211 3 hafta önce
..
examples 04ad7a2e2d Regenerate all packages Makefile's after merge of MR1211 3 hafta önce
namespaced b3a5a03163 * Dotted filenames for package libgd 2 yıl önce
src 92ebf40f04 Mass typo fixes in comments for packages part 3/5. 1 ay önce
Makefile 2289c1f6a2 * Remove redundant Makefile.fpc 2 yıl önce
Makefile.fpc.fpcmake 98f00acb06 * trunk to 3.3.1 7 yıl önce
README.txt 0e06ec8d38 Mass trailing space removal for packages (part 3). 1 ay önce
fpmake.pp b50d6ff99c - disable packages that don't compile on the wasip2 platform 11 ay önce
namespaces.lst b3a5a03163 * Dotted filenames for package libgd 2 yıl önce

README.txt

This is the interface unit for the gd library, version 1.8.4.
The gd library is a library to produce graphics files (jpeg,png and wbmp)
available from http://www.boutell.com/gd/.

The gd unit is a straight translation of the library headers.
It has some additional calls which make it more pascal like:

{overloaded pascal functions}
function fopen(a,b:string):pFile;
procedure gdImageChar(im:gdImagePtr; f:gdFontPtr; x:longint; y:longint; c:char; color:longint);
procedure gdImageCharUp(im:gdImagePtr; f:gdFontPtr; x:longint; y:longint; c:char; color:longint);
procedure gdImageString(im:gdImagePtr; f:gdFontPtr; x:longint; y:longint; s:string; color:longint);
procedure gdImageStringUp(im:gdImagePtr; f:gdFontPtr; x:longint; y:longint; s:string; color:longint);
procedure gdImageString16(im:gdImagePtr; f:gdFontPtr; x:longint; y:longint; s:string; color:longint);
procedure gdImageStringUp16(im:gdImagePtr; f:gdFontPtr; x:longint; y:longint; s:string; color:longint);
{$ifdef hasttf}
function gdImageStringTTF(im:PgdImage; brect:Plongint; fg:longint; fontlist:string; ptsize:double; angle:double; x:longint; y:longint; astring:string): string;
function gdImageStringFT(im:PgdImage; brect:Plongint; fg:longint; fontlist:string; ptsize:double; angle:double; x:longint; y:longint; astring:string):string;
{$endif}

These functions will work with both ansistrings and shortstrings; The unit
can be compiled in both the {$H+} as the {$H-} state.

The hasttf define should be defined for libraries which have TTF2 lib
support compiled in.

The gdtest example is adapted from the example of the gd unit by Mike Bradbery.
It shows how to use the pascal-like functions in the gd unit instead of the
raw C like functions which use pchars.

usage:
gdtest chart.png

the gdtestcgi example shows how to output an image to standard output,
this can be used for CGI scripts.

Michael.