NCBI C Toolkit Cross Reference

C/gif/ncbigif.h


  1 /*   ncbigif.h
  2 * ===========================================================================
  3 *
  4 *                            PUBLIC DOMAIN NOTICE
  5 *            National Center for Biotechnology Information (NCBI)
  6 *
  7 *  This software/database is a "United States Government Work" under the
  8 *  terms of the United States Copyright Act.  It was written as part of
  9 *  the author's official duties as a United States Government employee and
 10 *  thus cannot be copyrighted.  This software/database is freely available
 11 *  to the public for use. The National Library of Medicine and the U.S.
 12 *  Government do not place any restriction on its use or reproduction.
 13 *  We would, however, appreciate having the NCBI and the author cited in
 14 *  any work or product based on this material
 15 *
 16 *  Although all reasonable efforts have been taken to ensure the accuracy
 17 *  and reliability of the software and data, the NLM and the U.S.
 18 *  Government do not and cannot warrant the performance or results that
 19 *  may be obtained by using this software or data. The NLM and the U.S.
 20 *  Government disclaim all warranties, express or implied, including
 21 *  warranties of performance, merchantability or fitness for any particular
 22 *  purpose.
 23 *
 24 * ===========================================================================
 25 *
 26 * File Name:  ncbigif.h
 27 *
 28 * Author:  Alex Smirnov
 29 *
 30 * Version Creation Date:   10/20/95
 31 *
 32 * $Revision: 6.2 $
 33 *
 34 * File Description: 
 35 *       GIF generator header file
 36 *
 37 * Modifications:  
 38 * --------------------------------------------------------------------------
 39 * $Log: ncbigif.h,v $
 40 * Revision 6.2  1999/10/20 23:13:59  vakatov
 41 * + Nlm_Picture2gdImage() -- to draw in gdImage.
 42 * Nlm_PictureToGIF() -- restore current GIF image (if any) when the
 43 * dump is complete.
 44 *
 45 * Revision 6.1  1998/07/02 18:19:28  vakatov
 46 * Cleaned the code & made it pass through the C++ compilation
 47 *
 48 * ==========================================================================
 49 */
 50 
 51 
 52 #ifndef NCBIGIF_H
 53 #define NCBIGIF_H 1
 54 
 55 #include <picture.h>
 56 
 57 #undef NLM_EXTERN
 58 #ifdef NLM_IMPORT
 59 #define NLM_EXTERN NLM_IMPORT
 60 #else
 61 #define NLM_EXTERN extern
 62 #endif
 63 
 64 #ifdef __cplusplus
 65 extern "C" {
 66 #endif
 67 
 68 /* Dump a picture to GIF file
 69  */
 70 NLM_EXTERN Boolean Nlm_PictureToGIF
 71 (FILE* out, Int2 gifWidth, Int2 gifHeight,
 72  SegmenT picture, Int4 pntX, Int4 pntY,
 73  Int2 align, Int4 scaleX, Int4 scaleY, 
 74  Boolean transparent);
 75 
 76 NLM_EXTERN Boolean Nlm_Picture2gdImage
 77 (struct gdImageStruct* im, SegmenT picture,
 78  Int4 pntX, Int4 pntY, Int2 align, Int4 scaleX, Int4 scaleY);
 79 
 80 NLM_EXTERN SegmenT Nlm_FindPrimGIF
 81 (SegmenT picture, PoinT pt, Int2 gifWidth,
 82  Int2 gifHeight, Int4 pntX, Int4 pntY,
 83  Int2 align, Int4 scaleX, Int4 scaleY,
 84  Uint2Ptr segIDPtr, Uint2Ptr primIDPtr, 
 85  PrimitivE PNTR primPtr);
 86 
 87 NLM_EXTERN SegmenT Nlm_FindSegGIF
 88 (SegmenT picture, PoinT pt, Int2 gifWidth,
 89  Int2 gifHeight, Int4 pntX, Int4 pntY,
 90  Int2 align, Int4 scaleX, Int4 scaleY,
 91  Uint2Ptr segIDPtr, Uint2Ptr primIDPtr, 
 92  Uint2Ptr primCtPtr);
 93 
 94 
 95 #define PictureToGIF    Nlm_PictureToGIF
 96 #define Picture2gdImage Nlm_Picture2gdImage
 97 #define FindPrimGIF     Nlm_FindPrimGIF
 98 #define FindSegGIF      Nlm_FindSegGIF 
 99                  
100 #ifdef __cplusplus
101 }
102 #endif
103 
104 #undef NLM_EXTERN
105 #ifdef NLM_EXPORT
106 #define NLM_EXTERN NLM_EXPORT
107 #else
108 #define NLM_EXTERN
109 #endif
110 
111 #endif /* NCBIGIF_H */
112 

source navigation ]   [ diff markup ]   [ identifier search ]   [ freetext search ]   [ file search ]  

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.