iccwrite
Write ICC color profile data
Description
writes an International Color Consortium (ICC) profile data in structureoutProfile
= iccwrite(inProfile
,filename
)inProfile
to the file specified byfilename
.
您可以使用此功能在ICC配置文件数据结构中修改字段,并将其写入带有名称的文件filename
. For example, some applications use the string field in profile description to present choices to users. The ICC recommends modifying the profile description in ICC profile data before writing the data to a file. Each profile is recommended to have a unique profile description. You can therefore, use theiccwrite
function to modify the profile description.
Note
iccwrite
can write profiles that conform with either Version 2 (ICC.1:2001-04) or Version 4 (ICC.1:2001-12) of the ICC specification. To determine the version of the ICC specification, useversion
field in theHeader
of profile data structure. Based on the version, format theinProfile
for output. For more information about ICC profiles, visit the ICC website,https://www.color.org.
Examples
Input Arguments
Output Arguments
Tips
iccwrite
does not perform automatic conversions from one version of the ICC specification to another. Do the conversion manually by adding fields or modifying fields in ICC profile data. Useisicc
to validate the converted ICC profile data.