Struct lcms2::Profile
[−]
[src]
pub struct Profile { /* fields omitted */ }
Methods
impl Profile
[src]
fn new_icc(data: &[u8]) -> Result<Self, Error>
fn new_file<P: AsRef<Path>>(path: P) -> Result<Self>
fn new_srgb() -> Self
Create an ICC virtual profile for sRGB space. sRGB is a standard RGB color space created cooperatively by HP and Microsoft in 1996 for use on monitors, printers, and the Internet.
fn new_rgb(
white_point: &CIExyY,
primaries: &CIExyYTRIPLE,
transfer_function: &[&ToneCurve]
) -> Result<Self, Error>
white_point: &CIExyY,
primaries: &CIExyYTRIPLE,
transfer_function: &[&ToneCurve]
) -> Result<Self, Error>
fn new_gray(white_point: &CIExyY, curve: &ToneCurve) -> Result<Self, Error>
unsafe fn new_linearization_device_link(
color_space: ColorSpaceSignature,
curves: &[ToneCurveRef]
) -> LCMSResult<Self>
color_space: ColorSpaceSignature,
curves: &[ToneCurveRef]
) -> LCMSResult<Self>
Number of tone curves must be sufficient for the color space
fn ink_limiting(
color_space: ColorSpaceSignature,
limit: f64
) -> LCMSResult<Self>
color_space: ColorSpaceSignature,
limit: f64
) -> LCMSResult<Self>
This is a devicelink operating in CMYK for ink-limiting. Currently only cmsSigCmykData is supported. Limit: Amount of ink limiting in % (0..400%)
fn new_xyz() -> Profile
fn new_null() -> Profile
fn new_placeholder() -> Self
fn new_lab2(white_point: &CIExyY) -> Result<Self, Error>
fn new_lab4(white_point: &CIExyY) -> Result<Self, Error>
fn new_device_link<F, T>(
transform: &Transform<F, T>,
version: f64,
flags: u32
) -> Result<Self, Error>
transform: &Transform<F, T>,
version: f64,
flags: u32
) -> Result<Self, Error>
fn icc(&self) -> Result<Vec<u8>, Error>
fn device_class(&self) -> ProfileClassSignature
fn encoded_icc_version(&self) -> u32
fn header_attributes(&self) -> u64
fn header_creator(&self) -> u32
fn header_flags(&self) -> u32
fn header_manufacturer(&self) -> u32
fn header_model(&self) -> u32
fn header_rendering_intent(&self) -> u32
fn pcs(&self) -> ColorSpaceSignature
fn info(&self, info: InfoType, locale: Locale) -> Option<String>
fn version(&self) -> f64
fn tag_signatures(&self) -> Vec<TagSignature>
fn detect_black_point(&self, intent: Intent, flags: u32) -> Option<CIEXYZ>
fn detect_destination_black_point(
&self,
intent: Intent,
flags: u32
) -> Option<CIEXYZ>
&self,
intent: Intent,
flags: u32
) -> Option<CIEXYZ>