NAMEprofile - Dealing with Image Profiles
SYNOPSISMagickBooleanType CloneImageProfiles( Image *image, const Image *clone_image ); void DestroyImageProfiles( Image *image ); StringInfo * GetImageProfile( const Image *image, const char *name ); char * GetNextImageProfile( const Image *image ); MagickBooleanType ProfileImage( Image *image, const char *name, const unsigned char *datum, const unsigned long length, const MagickBooleanType clone ); StringInfo RemoveImageProfile( Image *image, const char *name ); MagickBooleanType SetImageProfile( Image *image, const char *name, const StringInfo *profile );
FUNCTION DESCRIPTIONS
CloneImageProfilesCloneImageProfiles() clones one or more image profiles. The format of the CloneImageProfiles method is: MagickBooleanType CloneImageProfiles ( Image *image, const Image *clone_image ); A description of each parameter follows:
DestroyImageProfilesDestroyImageProfiles() releases memory associated with an image profile map. The format of the DestroyProfiles method is: void DestroyImageProfiles ( Image *image ); A description of each parameter follows:
GetImageProfileGetImageProfile() gets a profile associated with an image by name. The format of the GetImageProfile method is: StringInfo *GetImageProfile ( const Image *image, const char *name ); A description of each parameter follows:
GetNextImageProfileGetNextImageProfile() gets the next profile name for an image. The format of the GetNextImageProfile method is: char *GetNextImageProfile ( const Image *image ); A description of each parameter follows:
ProfileImageProfileImage() adds or removes a ICC, IPTC, or generic profile from an image. If the profile is NULL, it is removed from the image otherwise added. Use a name of ' *' and a profile of NULL to remove all profiles from the image. The format of the ProfileImage method is: MagickBooleanType ProfileImage ( Image *image, const char *name, const unsigned char *datum, const unsigned long length, const MagickBooleanType clone ); A description of each parameter follows:
RemoveImageProfileRemoveImageProfile() removes an entry from the image-map by its name. The format of the RemoveImageProfile method is: StringInfo RemoveImageProfile ( Image *image, const char *name ); A description of each parameter follows:
ResetProfileIterator
The format of the ResetImageProfileIterator method is: ResetImageProfileIterator(Image *image) A description of each parameter follows:
SetImageProfileSetImageProfile() adds a named profile to the image. If a profile with the same name already exists, it is replaced. This method differs from the ProfileImage ( ) method in that it does not apply CMS color profiles. The format of the SetImageProfile method is: MagickBooleanType SetImageProfile ( Image *image, const char *name, const StringInfo *profile ); A description of each parameter follows:
|