![]() |
![]() |
![]() |
Entangle Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
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
);
GObject +----EntangleColourProfile
GObject +----EntangleColourProfileTransform
GEnum +----EntangleColourProfileIntent
"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
struct EntangleColourProfileTransformClass { GObjectClass parent_class; };
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;
EntangleColourProfile * entangle_colour_profile_new_file
(const char *filename
);
Create a new colour profile initializing from the contents
of filename
.
|
the file holding the profile. [transfer none] |
Returns : |
the colour profile. [transfer full] |
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
|
the data representing the colour profile. [transfer none] |
Returns : |
the colour profile. [transfer full] |
const char * entangle_colour_profile_filename (EntangleColourProfile *profile
);
Get the filename holding the profile on disk, if any.
|
the colour profile. [transfer none] |
Returns : |
the filename, or NULL. [transfer none] |
char * entangle_colour_profile_description (EntangleColourProfile *profile
);
Get the description of the profile
|
the colour profile. [transfer none] |
Returns : |
the profile description. [transfer full] |
char * entangle_colour_profile_manufacturer
(EntangleColourProfile *profile
);
Get the manufacturer of the profile
|
the colour profile. [transfer none] |
Returns : |
the profile manufacturer. [transfer full] |
char * entangle_colour_profile_model (EntangleColourProfile *profile
);
Get the model of the profile
|
the colour profile. [transfer none] |
Returns : |
the profile model. [transfer full] |
char * entangle_colour_profile_copyright (EntangleColourProfile *profile
);
Get the copyright of the profile
|
the colour profile. [transfer none] |
Returns : |
the profile copyright. [transfer full] |
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
.
|
original colour profile. [transfer none] |
|
target colour profile. [transfer none] |
|
rendering intent |
Returns : |
the colour profile transformation. [transfer full] |
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.
|
the profile transformation. [transfer none] |
|
the input pixbuf. [transfer none] |
Returns : |
the transformed pixbuf. [transfer full] |
"filename"
property"filename" gchar* : Read / Write / Construct Only
Filename of the profile.
Default value: NULL
"dst-profile"
property"dst-profile" EntangleColourProfile* : Read / Write / Construct Only
Destination Profile.
"rendering-intent"
property"rendering-intent" EntangleColourProfileIntent : Read / Write / Construct Only
Profile rendering intent.
Default value: ENTANGLE_COLOUR_PROFILE_INTENT_PERCEPTUAL
"src-profile"
property"src-profile" EntangleColourProfile* : Read / Write / Construct Only
Source profile.