load_handle


Description:

[ Version ( since = "0.1.33" ) ]
public bool load_handle (void* handle, IccLoadFlags flags) throws Error

Set the internal cmsHPROFILE instance.

This may be required if you create the profile using cmsCreateRGBProfileTHR and then want to use the functionality in Icc.

Do not call cmsCloseProfile on handle in the caller, this will be done when the this object is finalized. Treat the profile like it's been adopted by this module.

To handle the internal error callback, you should use the thread-safe creation function, e.g. cmsCreateNULLProfileTHR. The context_id should be set as the value of get_context for this object.

Additionally, this function cannot be called more than once, and also can't be called if load_file has previously been used on the this object.

Parameters:

this

a Icc instance.

handle

a cmsHPROFILE instance

flags

a set of IccLoadFlags




2022 vala-language.org