It8
Object Hierarchy:
Description:
Namespace: Cd
Package: colord
Content:
Properties:
- public string instrument { get; }
The instrument that created the results, e.
- public uint kind { get; set; }
The kind of IT8 file.
- public bool normalized { get; }
If the results file is normalized.
- public string originator { get; }
The framework that created the results, e.
- public string reference { get; }
The reference that created the results, e.
- public bool spectral { get; }
If the results file is spectral.
- public string title { get; }
The file title, e.
Static methods:
- public static Quark error_quark ()
Creation methods:
- public It8 ()
Creates a new It8 object.
- public It8.with_kind (It8Kind kind)
Creates a new It8 object.
Methods:
- public void add_data (ColorRGB rgb, ColorXYZ xyz)
Adds a reading to this object.
- public void add_option (string option)
Sets any extra options that have to be set in the CCMX file
- public void add_spectrum (Spectrum spectrum)
Adds a spectrum to the spectral array.
- public bool get_data_item (uint idx, ColorRGB rgb, ColorXYZ xyz)
Gets a specific bit of data from this object.
- public uint get_data_size ()
Gets the data size.
- public bool get_enable_created ()
Gets if the 'CREATED' attribute will be written.
- public unowned string get_instrument ()
Gets the instrument the file was created by.
- public It8Kind get_kind ()
Gets the kind of IT8 file.
- public unowned Mat3x3? get_matrix ()
Gets the calibration matrix in the it8 file.
- public bool get_normalized ()
Gets if the data should be written normlaised to y=100.
- public unowned string get_originator ()
Gets the file orginator.
- public unowned string get_reference ()
Gets the reference the file was created against.
- public bool get_spectral ()
Gets if the data is spectral or XYZ.
- public GenericArray<unowned Spectrum> get_spectrum_array ()
Gets the spectral data of IT8 file.
- public unowned Spectrum get_spectrum_by_id (string id)
Gets a specific spectrum in an IT8 file.
- public unowned string get_title ()
Gets the file title.
- public unowned ColorXYZ get_xyz_for_rgb (double R, double G, double B, double delta)
Gets the XYZ value for a specific RGB value.
- public bool has_option (string option)
Finds an option in the file.
- public bool load_from_data (string[] data) throws Error
Loads a it8 file from data.
- public bool load_from_file (File file) throws Error
Loads a it8 file from disk.
- public bool save_to_data (string[] data) throws Error
Saves a it8 file to an area of memory.
- public bool save_to_file (File file) throws Error
Saves a it8 file to disk
- public void set_enable_created (bool enable_created)
Sets if the 'CREATED' attribute should be written.
- public void set_instrument (string instrument)
Sets the measuring instrument that created the .
- public void set_kind (It8Kind kind)
Set the kind of IT8 file.
- public void set_matrix (Mat3x3 matrix)
Set the calibration matrix in the it8 file.
- public void set_normalized (bool normalized)
Sets if normalized data should be written to the .
- public void set_originator (string originator)
Sets the program name that created the .
- public void set_reference (string reference)
Sets the reference that as used to create the .
- public void set_spectral (bool spectral)
Sets if spectral data should be written to the .
- public void set_spectrum_array (owned GenericArray<unowned Spectrum> data)
Set the spectral data
- public void set_title (string title)
Sets the display name for the file.
Inherited Members:
All known members inherited from class GLib.Object