2 Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
8 http://www.imagemagick.org/script/license.php
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
16 MagickCore Binary Large OBjects methods.
18 #ifndef _MAGICKCORE_BLOB_H
19 #define _MAGICKCORE_BLOB_H
21 #if defined(__cplusplus) || defined(c_plusplus)
25 #include "magick/image.h"
26 #include "magick/stream.h"
28 #define MagickMaxBufferExtent 0x3c005L
37 extern MagickExport FILE
38 *GetBlobFileHandle(const Image *);
40 extern MagickExport Image
41 *BlobToImage(const ImageInfo *,const void *,const size_t,ExceptionInfo *),
42 *PingBlob(const ImageInfo *,const void *,const size_t,ExceptionInfo *);
44 extern MagickExport MagickBooleanType
45 BlobToFile(char *,const void *,const size_t,ExceptionInfo *),
46 FileToImage(Image *,const char *),
47 GetBlobError(const Image *),
48 ImageToFile(Image *,char *,ExceptionInfo *),
49 InjectImageBlob(const ImageInfo *,Image *,Image *,const char *,
51 IsBlobExempt(const Image *),
52 IsBlobSeekable(const Image *),
53 IsBlobTemporary(const Image *);
55 extern MagickExport MagickSizeType
56 GetBlobSize(const Image *);
58 extern MagickExport StreamHandler
59 GetBlobStreamHandler(const Image *);
61 extern MagickExport unsigned char
62 *FileToBlob(const char *,const size_t,size_t *,ExceptionInfo *),
63 *GetBlobStreamData(const Image *),
64 *ImageToBlob(const ImageInfo *,Image *,size_t *,ExceptionInfo *),
65 *ImagesToBlob(const ImageInfo *,Image *,size_t *,ExceptionInfo *);
67 extern MagickExport void
69 DuplicateBlob(Image *,const Image *),
70 SetBlobExempt(Image *,const MagickBooleanType);
72 #if defined(__cplusplus) || defined(c_plusplus)