Struct lcms2::Profile [] [src]

pub struct Profile<Context = GlobalContext> { /* fields omitted */ }

An ICC color profile

Methods

impl Profile<GlobalContext>
[src]

These are the basic functions on opening profiles. For simpler operation, you must open two profiles using new_file, and then create a transform with these open profiles with Transform. Using this transform you can color correct your bitmaps.

[src]

Parse ICC profile from the in-memory array

[src]

Load ICC profile file from disk

[src]

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.

[src]

This function creates a display RGB profile based on White point, primaries and transfer functions. It populates following tags; this conform a standard RGB Display Profile, and then I add (As per addendum II) chromaticity tag.

  1. ProfileDescriptionTag
  2. MediaWhitePointTag
  3. RedColorantTag
  4. GreenColorantTag
  5. BlueColorantTag
  6. RedTRCTag
  7. GreenTRCTag
  8. BlueTRCTag
  9. Chromatic adaptation Tag
  10. ChromaticityTag

[src]

This function creates a gray profile based on White point and transfer function. It populates following tags; this conform a standard gray display profile.

  1. ProfileDescriptionTag
  2. MediaWhitePointTag
  3. GrayTRCTag

[src]

Creates a XYZ XYZ identity, marking it as v4 ICC profile. WhitePoint used in Absolute colorimetric intent is D50.

[src]

Creates a fake NULL profile. This profile return 1 channel as always 0. Is useful only for gamut checking tricks.

[src]

Creates an empty profile object, ready to be populated by the programmer.

WARNING: The obtained profile without adding any information is not directly useable.

[src]

This is a devicelink operating in CMYK for ink-limiting. Currently only cmsSigCmykData is supported. Limit: Amount of ink limiting in % (0..400%)

Generates a device-link profile from a given color transform. This profile can then be used by any other function accepting profile handle. Depending on the specified version number, the implementation of the devicelink may vary. Accepted versions are in range 1.0…4.3

impl<Ctx: Context> Profile<Ctx>
[src]

[src]

Create ICC file in memory buffer

[src]

Gets the device class signature from profile header.

[src]

Sets the device class signature in profile header.

[src]

Returns the profile ICC version in the same format as it is stored in the header.

[src]

[src]

Gets the attribute flags. Currently defined values correspond to the low 4 bytes of the 8 byte attribute quantity.

  • Reflective
  • Transparency
  • Glossy
  • Matte

[src]

Sets the attribute flags in the profile header.

[src]

[src]

Get header flags of given ICC profile object.

The profile flags field does contain flags to indicate various hints for the CMM such as distributed processing and caching options. The least-significant 16 bits are reserved for the ICC. Flags in bit positions 0 and 1 shall be used as indicated in Table 7 of LCMS PDF.

[src]

Sets header flags of given ICC profile object. Valid flags are defined in Table 7 of LCMS PDF.

[src]

Returns the manufacturer signature as described in the header.

This funcionality is widely superseded by the manufaturer tag. Of use only in elder profiles.

[src]

Deprecated

: This funcionality is widely superseded by the manufaturer tag

Sets the manufacturer signature in the header.

This funcionality is widely superseded by the manufaturer tag. Of use only in elder profiles.

[src]

Returns the model signature as described in the header.

This funcionality is widely superseded by the model tag. Of use only in elder profiles.

[src]

Deprecated

: This funcionality is widely superseded by the model tag

Sets the model signature in the profile header.

This funcionality is widely superseded by the model tag. Of use only in elder profiles.

[src]

Gets the profile header rendering intent.

From the ICC spec: “The rendering intent field shall specify the rendering intent which should be used (or, in the case of a Devicelink profile, was used) when this profile is (was) combined with another profile. In a sequence of more than two profiles, it applies to the combination of this profile and the next profile in the sequence and not to the entire sequence. Typically, the user or application will set the rendering intent dynamically at runtime or embedding time. Therefore, this flag may not have any meaning until the profile is used in some context, e.g. in a Devicelink or an embedded source profile.”

[src]

[src]

Gets the profile connection space used by the given profile, using the ICC convention.

[src]

Sets the profile connection space signature in profile header, using ICC convention.

[src]

[src]

Returns the profile ICC version. The version is decoded to readable floating point format.

[src]

Sets the ICC version in profile header. The version is given to this function as a float n.m

[src]

[src]

[src]

[src]

[src]

Gets the color space used by the given profile, using the ICC convention.

[src]

Sets the profile connection space signature in profile header, using ICC convention.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Retrieves the Profile ID stored in the profile header.

[src]

Computes a MD5 checksum and stores it as Profile ID in the profile header.

[src]

impl<Ctx: Context> Profile<Ctx>
[src]

Per-context functions that can be used with a ThreadContext

[src]

[src]

[src]

[src]

[src]

This is a devicelink operating in the target colorspace with as many transfer functions as components. Number of tone curves must be sufficient for the color space.

[src]

Creates an abstract devicelink operating in Lab for Bright/Contrast/Hue/Saturation and white point translation. White points are specified as temperatures ºK

nLUTPoints : Resulting color map resolution Bright: Bright increment. May be negative Contrast : Contrast increment. May be negative. Hue : Hue displacement in degree. Saturation: Saturation increment. May be negative TempSrc: Source white point temperature TempDest: Destination white point temperature. To prevent white point adjustment, set Temp to None

[src]

This is a devicelink operating in CMYK for ink-limiting. Currently only cmsSigCmykData is supported. Limit: Amount of ink limiting in % (0..400%)

[src]

Creates a XYZ XYZ identity, marking it as v4 ICC profile. WhitePoint used in Absolute colorimetric intent is D50.

[src]

Creates a fake NULL profile. This profile return 1 channel as always 0. Is useful only for gamut checking tricks.

[src]

Creates a Lab Lab identity, marking it as v2 ICC profile.

Adjustments for accomodating PCS endoing shall be done by Little CMS when using this profile.

[src]

Creates a Lab Lab identity, marking it as v4 ICC profile.

Trait Implementations

impl<'a, C: Send> Send for Profile<C>
[src]

impl<Context> Drop for Profile<Context>
[src]

[src]

Executes the destructor for this type. Read more