#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrColorType {
Undefined = 0,
Pantone = 1,
CMYK = 2,
CMY = 3,
RGB = 5,
HSB = 6,
HLS = 7,
BlackAndWhite = 8,
Grayscale = 9,
YIQ = 10,
Lab = 11,
PantoneHex = 12,
Spot = 13,
Registration = 14,
Mixed = 15,
Custom = 16,
}
impl cdrColorType {
pub fn from_i32(v: i32) -> Option<Self> {
match v {
0 => Some(Self::Undefined),
1 => Some(Self::Pantone),
2 => Some(Self::CMYK),
3 => Some(Self::CMY),
5 => Some(Self::RGB),
6 => Some(Self::HSB),
7 => Some(Self::HLS),
8 => Some(Self::BlackAndWhite),
9 => Some(Self::Grayscale),
10 => Some(Self::YIQ),
11 => Some(Self::Lab),
12 => Some(Self::PantoneHex),
13 => Some(Self::Spot),
14 => Some(Self::Registration),
15 => Some(Self::Mixed),
16 => Some(Self::Custom),
_ => None,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrPaletteID {
Custom = 0,
TRUMATCH = 1,
PantoneProcess = 2,
PantoneCorel8 = 3,
PantoneHexachrome = 5,
PantoneMetallic = 6,
PantonePastel = 7,
FOCOLTONE = 8,
SpectraMaster = 9,
SVGPalette = 40,
}
impl cdrPaletteID {
pub fn from_i32(v: i32) -> Option<Self> {
match v {
0 => Some(Self::Custom),
1 => Some(Self::TRUMATCH),
2 => Some(Self::PantoneProcess),
3 => Some(Self::PantoneCorel8),
5 => Some(Self::PantoneHexachrome),
6 => Some(Self::PantoneMetallic),
7 => Some(Self::PantonePastel),
8 => Some(Self::FOCOLTONE),
9 => Some(Self::SpectraMaster),
40 => Some(Self::SVGPalette),
_ => None,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum clrRenderingIntent {
Perceptual = 0,
RelativeColorimetric = 1,
Saturation = 2,
AbsoluteColorimetric = 3,
}
impl clrRenderingIntent {
pub fn from_i32(v: i32) -> Option<Self> {
match v {
0 => Some(Self::Perceptual),
1 => Some(Self::RelativeColorimetric),
2 => Some(Self::Saturation),
3 => Some(Self::AbsoluteColorimetric),
_ => None,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum clrColorModel {
RGB = 0,
CMYK = 1,
Grayscale = 2,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum clrDeviceType {
Monitor = 0,
Scanner = 1,
Printer = 2,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum clrColorPolicyAction {
Ignore = 0,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum clrImportColorCorrection {
None = 0,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum clrExportColorCorrection {
None = 0,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrDuotoneType {
Monotone = 0,
Duotone = 1,
Tritone = 2,
Quadtone = 3,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrPaletteType {
Fixed = 0,
Custom = 1,
Document = 2,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrPaletteVersion {
V1 = 0,
}