For quick lookup, there is also an alphabetic listing or a listing-by-file of exported functions.
GO TO GO TO headers/exports description (below in this document) FILE canblend.c: blend rows and columns into the canvas canbrush.c: draw a brush onto the canvas candisp.c: display parts of a canvas onto the screen candraw.c: draw points, lines, rectangles and texture maps onto a canvas canfile.c: read and write canvases on stdin and stdout canhist.c: histogram operations for canvases canmap.c: support arbitrary color transforms on canvases canmisc.c: miscellaneous operations canop.c: apply global operations to canvases canpaint.c: paint brush strokes into the canvas cantext.c: draw points, lines, rectangles and texture maps onto a canvas canundo.c: support undo on canvases canvas.c: basic support for creation an manipulation of canvases mypercent.c: included so things work correctly...
NOTES ON MODULES IN LIBCAN.A
__________________________________________
______________________________________________________________
#include "stdio.h"
#include "canvas.h"
#include "lum.h"
void (*constblendrow)()
void (*blendrow)()
void (*blendcol)()
void beginstroke()
void endstroke()
void setnegalpha(v)
void setclonemode(c)
void setcurcolor(c)
unsigned long getcurcolor()
void avg_clear()
long avg_get()
void clonesource(c,dx,dy)
void readpix_init()
void setblend(b)
int getblend()
______________________________________________________________
#include "values.h"
#include "math.h"
#include "stdio.h"
#include "canvas.h"
void drawbrush(dest,fx,fy)
void getcircpos(x,y)
float qrand()
int getqrandstate()
void setqrandstate(s)
setcurwidth(w)
______________________________________________________________
#include "gl.h"
#include "canvas.h"
#include "vect.h"
#include "rch.h"
#include "math.h"
int paintpos(xpos,ypos,pos,strokeno,minm,maxm)
void displaysetup(drct,scan,sx,sy)
void displaycanvas(c)
void setrgbmode(rgb)
void setcurzoom(z)
int getcurzoom()
float getzoomfactor()
void drawcanborder(c)
canvas *screentoscanvas(x1,y1,x2,y2)
______________________________________________________________
#include "values.h"
#include "math.h"
#include "canvas.h"
#include "texture.h"
#include "izoom.h"
#include "polyscan.h"
void setalphascale(s)
void setalpha(a)
void drawapoint(c,x,y)
void drawaaline(c,x1,y1,x2,y2)
void canbeginscan(c,supersample)
void canvertex(x,y)
void cannextfacet()
void canendscan()
______________________________________________________________
#include "stdio.h"
#include "canvas.h"
void canvastofile(c,f)
canvas *filetocanvas(f)
______________________________________________________________
#include "stdio.h"
#include "math.h"
#include "values.h"
#include "canvas.h"
#include "hist.h"
hist *canvashist(c,channo)
void canpercenthist(c, fmin, fmax)
______________________________________________________________
#include "stdio.h"
#include "canvas.h"
#include "math.h"
#include "izoom.h"
#include "vect.h"
#include "lum.h"
canmap *makecanmap(transfunc,levels)
void freecanmap(map)
void applycanmap(c,map)
______________________________________________________________
#include "stdio.h"
#include "canvas.h"
#include "math.h"
#include "lum.h"
void onefield(c,fieldno)
void fieldfilter(c,thresh)
void blendcanvas(a,b,c,f)
void diffcanvas(a,b,c)
______________________________________________________________
#include "stdio.h"
#include "values.h"
#include "canvas.h"
#include "math.h"
#include "izoom.h"
#include "lum.h"
#include "lut.h"
void bwonly(mode)
void canvasop(c,opfunc,arg1,arg2,arg3)
void saturateop(pptr,n,sat,dum1,dum2)
void copyred(pptr,n,dum1,dum2,dum3)
void imgexpop(pptr,n,min,max,dum1)
void gammaop(pptr,n,gam,dum1,dum2)
void cscaleop(pptr,n,rscale,gscale,bscale)
void invertop(pptr,n)
void addnoiseop(pptr,n,mag)
void quantop(pptr,n,nsteps)
void duotoneop(pptr,n,rval,gval,bval)
void zapop(pptr,n)
canvas *makestamp(c,maxxsize,maxysize,filter)
void randcopy(orig,dest)
void canvastile(tile,dest)
void convolve3(src,dest,mat)
______________________________________________________________
#include "math.h"
#include "canvas.h"
#include "texture.h"
void drawaline(c,x,y)
void drawscatter(c,x,y)
void drawlongscatter(c,x,y)
void drawmultiline(c,x,y)
void mysincos(a,s,c)
void setangle(a)
void setangledelta(dx,dy)
void setrectsize(dx,dy)
void drawarect(c,x,y,tm)
______________________________________________________________
#include "stdio.h"
#include "math.h"
#include "canvas.h"
#include "objfnt.h"
#include "polyscan.h"
void drawtext(c,fnt,mat,xpos,ypos,string)
______________________________________________________________
#include "stdio.h"
#include "canvas.h"
#include "chunkarena.h"
void freeundo(c)
void addundo(c)
void saverect(c,r)
void undopaint(c)
void clearundo(c)
______________________________________________________________
#include "stdio.h"
#include "canvas.h"
#include "vect.h"
#include "izoom.h"
#include "math.h"
#include "resource.h"
#include "image.h"
void canvascopy(c,cc)
void touchcanvas(c)
void copycanvas(scan,srct,dcan,drct,filter)
int round(v)
void initcanvas(c,xsize,ysize)
canvas *newcanvas(xsize,ysize)
canvas *imagetocanvas(name)
canvas *crudeimagetocanvas(name)
int canvastoimage(c,name)
void freecanvas(c)
canvas *clonecanvas(c)
void canvasflushfunc(c,func)
void flushcanvas(c)
unsigned long samplecanvas(c,pos,dofilter)
void markdirty(c,r,add)
void clearcanvas(c)
void framecanvas(c)
void copyto(scan,dcan)
canvas *subcanvas(c,x1,x2,y1,y2)
void printcanvas(c)