summaryrefslogtreecommitdiff
path: root/dmagick/c/profile.d
blob: b984b4fc52965d98f32578760e5639ea9d605945 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
module dmagick.c.profile;

import dmagick.c.magickString;
import dmagick.c.image;
import dmagick.c.magickType;

extern(C)
{
	struct ProfileInfo
	{
		char*
			name;

		size_t
			length;

		ubyte*
			info;

		size_t
			signature;
	}

	enum RenderingIntent
	{
		UndefinedIntent,
		SaturationIntent,
		PerceptualIntent,
		AbsoluteIntent,
		RelativeIntent
	}

	char* GetNextImageProfile(const Image*);

	const(StringInfo)* GetImageProfile(const Image *,const char *);

	MagickBooleanType CloneImageProfiles(Image*, const Image*);
	MagickBooleanType DeleteImageProfile(Image*, const char*);
	MagickBooleanType ProfileImage(Image*, const char*, const void*, const size_t, const MagickBooleanType);
	MagickBooleanType SetImageProfile(Image*, const char*, const StringInfo*);
	MagickBooleanType SyncImageProfiles(Image*);

	StringInfo* RemoveImageProfile(Image*, const char*);

	void DestroyImageProfiles(Image*);
	void ResetImageProfileIterator(const Image*);
}