IDrawPt.c
资源名称:ilib [点击查看]
上传用户:changbiao
上传日期:2007-01-13
资源大小:141k
文件大小:1k
源码类别:

图片显示

开发平台:

C/C++

  1. /*
  2.  * IDrawPt.c
  3.  *
  4.  * Image library
  5.  *
  6.  * Description:
  7.  * Portable routines to manipulate raster images.
  8.  *
  9.  * History:
  10.  * 20-May-96 Craig Knudsen cknudsen@radix.net
  11.  * Created
  12.  *
  13.  ****************************************************************************/
  14. #include <stdio.h>
  15. #include <stdlib.h>
  16. #include <ctype.h>
  17. #include <memory.h>
  18. #include "Ilib.h"
  19. #include "IlibP.h"
  20. IError IDrawPoint ( image, gc, x, y )
  21. IImage image;
  22. IGC gc;
  23. int x;
  24. int y;
  25. {
  26.   IGCP *gcp = (IGCP *)gc;
  27.   IImageP *imagep = (IImageP *)image;
  28.   if ( ! gcp )
  29.     return ( IInvalidGC );
  30.   if ( gcp->magic != IMAGIC_GC )
  31.     return ( IInvalidGC );
  32.   if ( ! imagep )
  33.     return ( IInvalidImage );
  34.   if ( imagep->magic != IMAGIC_IMAGE )
  35.     return ( IInvalidImage );
  36.   _IDrawPoint ( imagep, gcp, x, y )
  37.   return ( INoError );
  38. }