PageRenderTime 24ms CodeModel.GetById 11ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

/dmagick/c/blob.d

http://github.com/MikeWey/DMagick
D | 46 lines | 36 code | 10 blank | 0 comment | 0 complexity | 24b0a0d5435645fb05a926b1108cfd2e MD5 | raw file
 1module dmagick.c.blob;
 2
 3import core.stdc.stdio;
 4
 5import dmagick.c.exception;
 6import dmagick.c.image;
 7import dmagick.c.magickType;
 8import dmagick.c.stream;
 9
10extern(C)
11{
12	enum MapMode
13	{
14		ReadMode,
15		WriteMode,
16		IOMode,
17		PersistMode
18	}
19
20	FILE* GetBlobFileHandle(const(Image)*);
21
22	Image* BlobToImage(const(ImageInfo)*, const(void)*, const size_t, ExceptionInfo*);
23	Image* PingBlob(const(ImageInfo)*, const(void)*, const size_t, ExceptionInfo*);
24
25	MagickBooleanType BlobToFile(char*, const(void)*, const size_t, ExceptionInfo*);
26	MagickBooleanType FileToImage(Image*, const(char)*);
27	MagickBooleanType GetBlobError(const(Image)*);
28	MagickBooleanType ImageToFile(Image*, char*, ExceptionInfo*);
29	MagickBooleanType InjectImageBlob(const(ImageInfo)*, Image*, Image*, const(char)*, ExceptionInfo*);
30	MagickBooleanType IsBlobExempt(const(Image)*);
31	MagickBooleanType IsBlobSeekable(const(Image)*);
32	MagickBooleanType IsBlobTemporary(const(Image)*);
33
34	MagickSizeType GetBlobSize(const(Image)*);
35
36	StreamHandler GetBlobStreamHandler(const(Image)*);
37
38	ubyte* FileToBlob(const(char)*, const size_t, size_t*, ExceptionInfo*);
39	ubyte* GetBlobStreamData(const(Image)*);
40	ubyte* ImageToBlob(const(ImageInfo)*, Image*, size_t*, ExceptionInfo*);
41	ubyte* ImagesToBlob(const(ImageInfo)*, Image*, size_t*, ExceptionInfo*);
42
43	void DestroyBlob(Image*);
44	void DuplicateBlob(Image*, const(Image)*);
45	void SetBlobExempt(Image*, const MagickBooleanType);
46}