* harbour/bin/bld.bat
* added HB_USER_LIB var to bcc link line to make usable bldtest.bat
Question: Is there a way to build from bcc adding contrib libs ?
- harbour/contrib/gd/hbgd.txt
+ harbour/contrib/gd/doc/hbgd.txt
* moved in doc dir
+ harbour/contrib/gd/doc/COPYING
+ gd copyright text (it's free for any use, but this file has to be
reported)
+ harbour/contrib/gd/include/entities.h
+ harbour/contrib/gd/include/gd.h
+ harbour/contrib/gd/include/gd_io.h
+ harbour/contrib/gd/include/gdcache.h
+ harbour/contrib/gd/include/gdfontg.h
+ harbour/contrib/gd/include/gdfontl.h
+ harbour/contrib/gd/include/gdfontmb.h
+ harbour/contrib/gd/include/gdfonts.h
+ harbour/contrib/gd/include/gdfontt.h
+ harbour/contrib/gd/include/gdfx.h
+ harbour/contrib/gd/include/gdhelpers.h
+ harbour/contrib/gd/include/jisx0208.h
+ harbour/contrib/gd/include/wbmp.h
+ include files for compiling in windows environment
+ harbour/contrib/gd/tests/digits/57chevy.gif
+ harbour/contrib/gd/tests/digits/7seg.gif
+ harbour/contrib/gd/tests/digits/brsd.gif
+ harbour/contrib/gd/tests/digits/digib.gif
+ harbour/contrib/gd/tests/digits/fdb.gif
+ harbour/contrib/gd/tests/digits/jelly.gif
+ harbour/contrib/gd/tests/digits/odb.gif
+ harbour/contrib/gd/tests/digits/odw.gif
+ harbour/contrib/gd/tests/digits/pdg.gif
+ harbour/contrib/gd/tests/digits/pdw.gif
+ digits images for counter.prg sample
+ harbour/contrib/gd/gdexternal.ch
+ external declarations for use with linker
+ harbour/contrib/gd/make_b32.bat
+ harbour/contrib/gd/makefile.bc
+ harbour/contrib/gd/tests/bldtest.bat
+ harbour/contrib/gd/tests/bldtest.sh
+ make files
* harbour/contrib/gd/tests/images_in/conv_test.jpeg
* harbour/contrib/gd/tests/images_in/gdlogobig.png
* harbour/contrib/gd/tests/images_in/theclipper.gif
* updated images (I got them corrupted, probably is CVS ?)
* harbour/contrib/gd/README
* harbour/contrib/gd/gd.prg
* harbour/contrib/gd/gdbar.prg
* harbour/contrib/gd/gdbarcod.prg
* harbour/contrib/gd/gdchart.prg
* harbour/contrib/gd/gdimage.prg
* harbour/contrib/gd/gdwrp.c
* harbour/contrib/gd/tests/animgif.prg
* harbour/contrib/gd/tests/antialiased.prg
* harbour/contrib/gd/tests/barms.prg
* harbour/contrib/gd/tests/bartest.prg
* harbour/contrib/gd/tests/counter.prg
* harbour/contrib/gd/tests/gdtestcls.prg
* harbour/contrib/gd/tests/test_out.prg
* harbour/contrib/gd/tests/testdpi.prg
* harbour/contrib/gd/tests/tostring.prg
* fixed hbgd files
! Please test in other environment.
I have built harbour as downloaded from CVS,
no HB_COMPAT_XHB defined
74 lines
2.3 KiB
C
74 lines
2.3 KiB
C
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef GDFX_H
|
|
#define GDFX_H 1
|
|
|
|
#include "gd.h"
|
|
|
|
/* im MUST be square, but can have any size. Returns a new image
|
|
of width and height radius * 2, in which the X axis of
|
|
the original has been remapped to theta (angle) and the Y axis
|
|
of the original has been remapped to rho (distance from center).
|
|
This is known as a "polar coordinate transform." */
|
|
|
|
BGD_DECLARE(gdImagePtr) gdImageSquareToCircle(gdImagePtr im, int radius);
|
|
|
|
/* Draws the text 'top' and 'bottom' on 'im', curved along the
|
|
edge of a circle of radius 'radius', with its
|
|
center at 'cx' and 'cy'. 'top' is written clockwise
|
|
along the top; 'bottom' is written counterclockwise
|
|
along the bottom. 'textRadius' determines the 'height'
|
|
of each character; if 'textRadius' is 1/2 of 'radius',
|
|
characters extend halfway from the edge to the center.
|
|
'fillPortion' varies from 0 to 1.0, with useful values
|
|
from about 0.4 to 0.9, and determines how much of the
|
|
180 degrees of arc assigned to each section of text
|
|
is actually occupied by text; 0.9 looks better than
|
|
1.0 which is rather crowded. 'font' is a freetype
|
|
font; see gdImageStringFT. 'points' is passed to the
|
|
freetype engine and has an effect on hinting; although
|
|
the size of the text is determined by radius, textRadius,
|
|
and fillPortion, you should pass a point size that
|
|
'hints' appropriately -- if you know the text will be
|
|
large, pass a large point size such as 24.0 to get the
|
|
best results. 'fgcolor' can be any color, and may have
|
|
an alpha component, do blending, etc.
|
|
|
|
Returns 0 on success, or an error string. */
|
|
|
|
BGD_DECLARE(char *) gdImageStringFTCircle(
|
|
gdImagePtr im,
|
|
int cx,
|
|
int cy,
|
|
double radius,
|
|
double textRadius,
|
|
double fillPortion,
|
|
char *font,
|
|
double points,
|
|
char *top,
|
|
char *bottom,
|
|
int fgcolor);
|
|
|
|
/* 2.0.16:
|
|
* Sharpen function added on 2003-11-19
|
|
* by Paul Troughton (paul<dot>troughton<at>ieee<dot>org)
|
|
* Simple 3x3 convolution kernel
|
|
* Makes use of seperability
|
|
* Faster, but less flexible, than full-blown unsharp masking
|
|
* pct is sharpening percentage, and can be greater than 100
|
|
* Silently does nothing to non-truecolor images
|
|
* Silently does nothing for pct<0, as not a useful blurring function
|
|
* Leaves transparency/alpha-channel untouched
|
|
*/
|
|
|
|
BGD_DECLARE(void) gdImageSharpen (gdImagePtr im, int pct);
|
|
|
|
#endif /* GDFX_H */
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|