diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-06-26 01:58:55 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-06-26 01:58:55 +0000 |
commit | d5dc5396c5f2700810a591a8359c5415923b308a (patch) | |
tree | e24799ddaf0b10f5ccaff842524bfcb1e2370fe5 /lib | |
parent | 5b27b9d6bb2224303e2adc74fa0cf23d74cebec7 (diff) | |
download | netpbm-mirror-d5dc5396c5f2700810a591a8359c5415923b308a.tar.gz netpbm-mirror-d5dc5396c5f2700810a591a8359c5415923b308a.tar.xz netpbm-mirror-d5dc5396c5f2700810a591a8359c5415923b308a.zip |
Put back 4-point spline stub, used by Svgtopam
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@936 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libppmd.c | 25 | ||||
-rw-r--r-- | lib/ppmdraw.h | 12 |
2 files changed, 37 insertions, 0 deletions
diff --git a/lib/libppmd.c b/lib/libppmd.c index 3f86f5b6..89504c46 100644 --- a/lib/libppmd.c +++ b/lib/libppmd.c @@ -834,6 +834,31 @@ ppmd_polyspline(pixel ** const pixels, void +ppmd_spline4p(pixel ** const pixels, + unsigned int const cols, + unsigned int const rows, + pixval const maxval, + ppmd_point const endPt0, + ppmd_point const endPt1, + ppmd_point const ctlPt0, + ppmd_point const ctlPt1, + ppmd_drawprocp drawproc, + const void * const clientdata) { +/*---------------------------------------------------------------------------- + Draw a cubic spline from 'endPt0' to 'endPt1', using 'ctlPt0' and + 'ctlPt1' as control points in the classic way: a line through + 'endPt0' and 'ctlPt0' is tangent to the curve at 'entPt0' and the + length of that line controls "enthusiasm," whatever that is. + Same for 'endPt1' and 'ctlPt1'. +-----------------------------------------------------------------------------*/ + + pm_error("ppmd_spline4p() has not been written yet!"); + +} + + + +void ppmd_circlep(pixel ** const pixels, unsigned int const cols, unsigned int const rows, diff --git a/lib/ppmdraw.h b/lib/ppmdraw.h index 080e4c62..d7a02e79 100644 --- a/lib/ppmdraw.h +++ b/lib/ppmdraw.h @@ -219,6 +219,18 @@ ppmd_polyspline(pixel ** const pixels, const void * const clientdata); void +ppmd_spline4p(pixel ** const pixels, + unsigned int const cols, + unsigned int const rows, + pixval const maxval, + ppmd_point const endPt0, + ppmd_point const endPt1, + ppmd_point const ctlPt0, + ppmd_point const ctlPt1, + ppmd_drawprocp drawproc, + const void * const clientdata); + +void ppmd_circlep(pixel ** const pixels, unsigned int const cols, unsigned int const rows, |