summaryrefslogtreecommitdiff
path: root/dmagick/c/profile.d
blob: e499a31c3a1df7b8a6f921df632e5f41687dd001 (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)*);
}