Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

IMG_Api.h

00001 
00006 
00007 #ifndef _H_IMG_API
00008 #define _H_IMG_API
00009 
00010 
00011 typedef void* IMG_CanvasPtr;
00012 typedef void* IMG_BrushPtr;
00013 typedef void* IMG_CanvasActionPtr;
00014 
00015 #ifdef __cplusplus
00016 extern "C" {
00017 #endif
00018 
00019 
00025 
00026 extern void IMG_CanvasActionSetDirtyHackImagePointer(IMG_CanvasActionPtr action, void* dirtyHackImagePointer);
00027 extern void* IMG_CanvasActionGetDirtyHackImagePointer(IMG_CanvasActionPtr action);
00028 
00029 
00047 
00048 extern IMG_CanvasPtr            IMG_CanvasCreate(unsigned int width, unsigned int height);
00049 extern IMG_CanvasPtr            IMG_CanvasCreateFromPtr(void* imagePtr, unsigned int width, unsigned int height, unsigned int rowBytes);
00050 
00051 extern void                                     IMG_CanvasIncRef(IMG_CanvasPtr canvas);
00052 extern void                                     IMG_CanvasDecRef(IMG_CanvasPtr canvas);
00053 
00054 extern void                                     IMG_CanvasStartStroke(IMG_CanvasPtr canvas);
00055 extern void                                     IMG_CanvasDrawStroke(IMG_CanvasPtr canvas, IMG_BrushPtr brush, int x1, int y1, int x2, int y2);
00056 
00057 extern void                                     IMG_CanvasStartStrokeUV(IMG_CanvasPtr canvas);
00058 extern void                                     IMG_CanvasDrawStrokeUV(IMG_CanvasPtr canvas, IMG_BrushPtr brush, float u1, float v1, float u2, float v2);
00059 
00060 extern IMG_CanvasActionPtr      IMG_CanvasEndStroke(IMG_CanvasPtr canvas);
00061 
00062 
00068 
00069 extern IMG_BrushPtr     IMG_BrushCreate(unsigned int width, unsigned int height, float red, float green, float blue, float alpha);
00070 extern void                     IMG_BrushDispose(IMG_BrushPtr brush);
00071 
00072 
00073 #ifdef __cplusplus
00074 }
00075 #endif
00076 
00077 #endif // _H_IMG_API

Generated at Thu May 3 17:29:38 2001 for ImgLib by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000