github.com/kaydxh/golang@v0.0.131/pkg/gocv/cgo/third_path/graphics-magick/include/GraphicsMagick/magick/attribute.h (about)

     1  /*
     2    Copyright (C) 2003 GraphicsMagick Group
     3    Copyright (C) 2002 ImageMagick Studio
     4  
     5    This program is covered by multiple licenses, which are described in
     6    Copyright.txt. You should have received a copy of Copyright.txt with this
     7    package; otherwise see http://www.graphicsmagick.org/www/Copyright.html.
     8  
     9    Methods to Get/Set/Destroy Image Text Attributes.
    10  */
    11  #ifndef _MAGICK_ATTRIBUTE_H
    12  #define _MAGICK_ATTRIBUTE_H
    13  
    14  #if defined(__cplusplus) || defined(c_plusplus)
    15  extern "C" {
    16  #endif
    17  
    18  #include "magick/image.h"
    19  
    20  typedef struct _ImageAttribute
    21  {
    22    char
    23      *key,           /* identifying key */
    24      *value;         /* value string */
    25  
    26    size_t
    27      length;         /* value string length */
    28  
    29    struct _ImageAttribute
    30      *previous,
    31      *next;
    32  } ImageAttribute;
    33  
    34  /*
    35    MagickExported text attribute methods.
    36  */
    37  extern MagickExport const ImageAttribute
    38    *GetImageAttribute(const Image *image,const char *key),
    39    *GetImageClippingPathAttribute(const Image *image),
    40    *GetImageInfoAttribute(const ImageInfo *image_info,const Image *image,const char *key);
    41  
    42  extern MagickExport MagickPassFail
    43    CloneImageAttributes(Image* clone_image, const Image* original_image),
    44    SetImageAttribute(Image *image,const char *key,const char *value);
    45  
    46  extern MagickExport void
    47    DestroyImageAttributes(Image *image);
    48  
    49  #if defined(MAGICK_IMPLEMENTATION)
    50  #  include "magick/attribute-private.h"
    51  #endif /* defined(MAGICK_IMPLEMENTATION) */
    52  
    53  #if defined(__cplusplus) || defined(c_plusplus)
    54  }
    55  #endif
    56  
    57  #endif
    58  
    59  /*
    60   * Local Variables:
    61   * mode: c
    62   * c-basic-offset: 2
    63   * fill-column: 78
    64   * End:
    65   */