EntangleColourProfile

EntangleColourProfile

Synopsis

struct              EntangleColourProfile;
struct              EntangleColourProfileClass;
struct              EntangleColourProfileTransform;
struct              EntangleColourProfileTransformClass;
enum                EntangleColourProfileIntent;
EntangleColourProfile * entangle_colour_profile_new_file
                                                        (const char *filename);
EntangleColourProfile * entangle_colour_profile_new_data
                                                        (GByteArray *data);
const char *        entangle_colour_profile_filename    (EntangleColourProfile *profile);
char *              entangle_colour_profile_description (EntangleColourProfile *profile);
char *              entangle_colour_profile_manufacturer
                                                        (EntangleColourProfile *profile);
char *              entangle_colour_profile_model       (EntangleColourProfile *profile);
char *              entangle_colour_profile_copyright   (EntangleColourProfile *profile);
EntangleColourProfileTransform * entangle_colour_profile_transform_new
                                                        (EntangleColourProfile *src,
                                                         EntangleColourProfile *dst,
                                                         EntangleColourProfileIntent intent);
GdkPixbuf *         entangle_colour_profile_transform_apply
                                                        (EntangleColourProfileTransform *trans,
                                                         GdkPixbuf *srcpixbuf);

Object Hierarchy

  GObject
   +----EntangleColourProfile
  GObject
   +----EntangleColourProfileTransform
  GEnum
   +----EntangleColourProfileIntent

Properties

  "data"                     GByteArray*           : Read / Write / Construct Only
  "filename"                 gchar*                : Read / Write / Construct Only
  "dst-profile"              EntangleColourProfile*  : Read / Write / Construct Only
  "rendering-intent"         EntangleColourProfileIntent  : Read / Write / Construct Only
  "src-profile"              EntangleColourProfile*  : Read / Write / Construct Only

Description

Details

struct EntangleColourProfile

struct EntangleColourProfile;

struct EntangleColourProfileClass

struct EntangleColourProfileClass {
    GObjectClass parent_class;
};

struct EntangleColourProfileTransform

struct EntangleColourProfileTransform;

struct EntangleColourProfileTransformClass

struct EntangleColourProfileTransformClass {
    GObjectClass parent_class;
};

enum EntangleColourProfileIntent

typedef enum {
    ENTANGLE_COLOUR_PROFILE_INTENT_PERCEPTUAL,
    ENTANGLE_COLOUR_PROFILE_INTENT_REL_COLOURIMETRIC,
    ENTANGLE_COLOUR_PROFILE_INTENT_SATURATION,
    ENTANGLE_COLOUR_PROFILE_INTENT_ABS_COLOURIMETRIC,
} EntangleColourProfileIntent;

ENTANGLE_COLOUR_PROFILE_INTENT_PERCEPTUAL

ENTANGLE_COLOUR_PROFILE_INTENT_REL_COLOURIMETRIC

ENTANGLE_COLOUR_PROFILE_INTENT_SATURATION

ENTANGLE_COLOUR_PROFILE_INTENT_ABS_COLOURIMETRIC


entangle_colour_profile_new_file ()

EntangleColourProfile * entangle_colour_profile_new_file
                                                        (const char *filename);

Create a new colour profile initializing from the contents of filename.

filename :

the file holding the profile. [transfer none]

Returns :

the colour profile. [transfer full]

entangle_colour_profile_new_data ()

EntangleColourProfile * entangle_colour_profile_new_data
                                                        (GByteArray *data);

Create a new colour profile initializing from data. The data will not be copied, rather a reference taken, so the contents should not be changed by the caller

data :

the data representing the colour profile. [transfer none]

Returns :

the colour profile. [transfer full]

entangle_colour_profile_filename ()

const char *        entangle_colour_profile_filename    (EntangleColourProfile *profile);

Get the filename holding the profile on disk, if any.

profile :

the colour profile. [transfer none]

Returns :

the filename, or NULL. [transfer none]

entangle_colour_profile_description ()

char *              entangle_colour_profile_description (EntangleColourProfile *profile);

Get the description of the profile

profile :

the colour profile. [transfer none]

Returns :

the profile description. [transfer full]

entangle_colour_profile_manufacturer ()

char *              entangle_colour_profile_manufacturer
                                                        (EntangleColourProfile *profile);

Get the manufacturer of the profile

profile :

the colour profile. [transfer none]

Returns :

the profile manufacturer. [transfer full]

entangle_colour_profile_model ()

char *              entangle_colour_profile_model       (EntangleColourProfile *profile);

Get the model of the profile

profile :

the colour profile. [transfer none]

Returns :

the profile model. [transfer full]

entangle_colour_profile_copyright ()

char *              entangle_colour_profile_copyright   (EntangleColourProfile *profile);

Get the copyright of the profile

profile :

the colour profile. [transfer none]

Returns :

the profile copyright. [transfer full]

entangle_colour_profile_transform_new ()

EntangleColourProfileTransform * entangle_colour_profile_transform_new
                                                        (EntangleColourProfile *src,
                                                         EntangleColourProfile *dst,
                                                         EntangleColourProfileIntent intent);

Create a colour profile transformation that is able to convert images in the profile src to be in the profile dst.

src :

original colour profile. [transfer none]

dst :

target colour profile. [transfer none]

intent :

rendering intent

Returns :

the colour profile transformation. [transfer full]

entangle_colour_profile_transform_apply ()

GdkPixbuf *         entangle_colour_profile_transform_apply
                                                        (EntangleColourProfileTransform *trans,
                                                         GdkPixbuf *srcpixbuf);

Apply the colour profile transformation trans to the pixbuf data in srcpixbuf and return a new pixbuf whose data is in the target colour profile. The contents of srcpixbuf will not be altered in any way.

trans :

the profile transformation. [transfer none]

srcpixbuf :

the input pixbuf. [transfer none]

Returns :

the transformed pixbuf. [transfer full]

Property Details

The "data" property

  "data"                     GByteArray*           : Read / Write / Construct Only

Raw data for the profile.


The "filename" property

  "filename"                 gchar*                : Read / Write / Construct Only

Filename of the profile.

Default value: NULL


The "dst-profile" property

  "dst-profile"              EntangleColourProfile*  : Read / Write / Construct Only

Destination Profile.


The "rendering-intent" property

  "rendering-intent"         EntangleColourProfileIntent  : Read / Write / Construct Only

Profile rendering intent.

Default value: ENTANGLE_COLOUR_PROFILE_INTENT_PERCEPTUAL


The "src-profile" property

  "src-profile"              EntangleColourProfile*  : Read / Write / Construct Only

Source profile.