about summary refs log tree commit diff
path: root/lib/libppmd.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2009-06-26 01:58:55 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2009-06-26 01:58:55 +0000
commitd5dc5396c5f2700810a591a8359c5415923b308a (patch)
treee24799ddaf0b10f5ccaff842524bfcb1e2370fe5 /lib/libppmd.c
parent5b27b9d6bb2224303e2adc74fa0cf23d74cebec7 (diff)
downloadnetpbm-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/libppmd.c')
-rw-r--r--lib/libppmd.c25
1 files changed, 25 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,