-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcmyk_space.h
More file actions
42 lines (34 loc) · 1.12 KB
/
cmyk_space.h
File metadata and controls
42 lines (34 loc) · 1.12 KB
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
// cmyk_conversions.h
#pragma once
#ifndef CMYK_CONVERSIONS_H
#define CMYK_CONVERSIONS_H
// --- Start of "extern C" block ---
#ifdef __cplusplus
extern "C" {
#endif
#include "import_exports.h"
#include "color_types.h"
/// <summary>
/// Converts an RGB color to CMYK color space.
/// </summary>
/// <param name="clr">The RGB color to convert.</param>
/// <returns>The color represented in CMYK color space.</returns>
COLORS_DEV_API CmykSpace RgbToCmyk(RgbColor clr);
/// <summary>
/// Converts a CMYK color to an RGB color.
/// </summary>
/// <param name="cmyk">The CMYK color to convert.</param>
/// <returns>The converted RGB color.</returns>
COLORS_DEV_API RgbColor CmykToRgb(CmykSpace cmyk);
/// <summary>
/// Gets the CMYK modification as a string representation.
/// </summary>
/// <param name="cmyk">The CMYK color space value to convert.</param>
/// <returns>A pointer to a character string representing the CMYK modification.<br/>
/// The caller is responsible for calling FreeAllocPtr to free memory.</returns>
COLORS_DEV_API char* GetCmykMod(CmykSpace cmyk);
// --- End of "extern C" block ---
#ifdef __cplusplus
}
#endif
#endif