This chapter provides a script example showing how to use the SETATTR: command to set attributes. The chapter includes an example for each supported attribute. Examples are presented alphabetically by attribute name. In most cases, the values exactly match the fields in the icHeader structure. Those that don't are indicated.
Attribute Tag=icSigHeaderTag; Attribute Value=KCMS,2,icSigOutputClass,icSigRgbData, icSigLabData,95,7,27,17,30,15,acsp,icSigSolaris, 1,prnt,test,0,0,0,0.964188,1.0,0.82489; |
Attribute value= are values that exactly match the fields in the icHeader structure. See the icHeader structure in icc.h.
You set and get each of the following attributes in the same manner:
icSigAToB0Tag
icSigAToB1Tag
icSigAToB2Tag
Attribute Tag=attribute_name Attribute Value=file_name |
Attribute Tag= is icSigAToB0Tag, icSigAToB1Tag, or icSigAToB2Tag.
Attribute Value= is the name of a file containing data in the structure of an ic_lut8Type or ic_lut16Type. See the the icc.h header file for a description of each of these structures.
Attribute Tag=icSigBlueColorantTag; Attribute Value=29.41,12.37,151.21; |
Attribute Value= are floating point X, Y, and Z values.
Attribute Tag=icSigBlueTRCTag; Count=4; Attribute Value=0,30000,45000,65535; |
Count= is the number of values to be supplied.
Attribute Value= are 2-byte values.
You set and get each of the following attributes in the same manner:
Attribute Tag=attribute_name Attribute Value=file_name |
Attribute Tag= is icSigBToA0Tag, icSigBToA1Tag, or icSigBToA2Tag.
Attribute Value= is the name of a file containing data in the structure of an ic_lut8Type or ic_lut16Type. See the the icc.h header file for a description of each of these structures.
Attribute Tag=icSigCalibrationDateTimeTag; Attribute Value=1995,6,27,16,34,0; |
Attribute Value= are the following values:
Year
Month
Day
Hour
Minutes
Seconds
Attribute Tag=icSigCharTargetTag; Attribute Value=IT8.7/2; |
Attribute Value= is the ASCII string.
Attribute Tag=icSigCopyrightTag; Attribute Value=No Copy right; |
Attribute Value= is the ASCII string.
Attribute Tag=icSigDeviceMfgDescTag; Count=50; Attribute Value=55,56,QA Test; |
Count= is the number of characters in the ASCII string description. It must be greater than or equal to the actual number of characters plus a terminating NULL byte.
Attribute Value= are Unicode description length (optional), Scriptcode description length (optional), and ASCII string description.
Attribute Tag=icSigDeviceModelDescTag; Count=50; Attribute Value=55,56,All icc attributes; |
Count= is the number of characters in the ASCII string description. It must be greater than or equal to the actual number of characters plus a terminating NULL byte.
Attribute Value= are Unicode description length (optional), Scriptcode description length (optional), and ASCII string description.
Attribute Tag= icSigGamutTag Attribute Value=file_name |
Attribute Value= is the name of a file containing data in the structure of an ic_lut8Type or ic_lut16Type. See the the icc.h header file for a description of each of these structures.
Attribute Tag=icSigGrayTRCTag; Count=9; Attribute Value=0,8191,16383,24575,32767,40959,49151,57343,65535; |
Count= is the number of values to be supplied.
Attribute Value= are 2-byte values.
Attribute Tag=icSigGreenColorantTag; Attribute Value=46.40,100.0,22.20; |
Attribute Value= are floating point X, Y, and Z values.
Attribute Tag=icSigGreenTRCTag; Count=4; Attribute Value=0,21512,43024,65535; |
Count= is the number of values to be supplied.
Attribute Value= are 2-byte values.
Attribute Tag=icSigLuminanceTag; Attribute Value=38.668,40.0,32.996; |
Attribute Value= are floating point X, Y, and Z values.
Attribute Tag=icSigMeasurementTag; Attribute Value=icStdObs1931TwoDegrees,1.0,1.0,1.0, icGeometry045or450,icFlare0,icIlluminantD50; |
Attribute Value= are values that exactly match fields in the icMeasurement structure. See the icMeasurement structure in icc.h.
Attribute Tag=icSigMediaBlackPointTag; Attribute Value=0.056,0.12,0.003; |
Attribute Value= are floating point X, Y, and Z values.
Attribute Tag=icSigMediaWhitePointTag; Attribute Value=0.964188,1.0,0.82489; |
Attribute Value= are floating point X, Y, and Z values.
Attribute Tag=icSigNamedColor2Tag; Count=2; Attribute Value=3, 135, light, ish, Green, 100, 20, 20, 120, 83, 75, Red, 20, 100, 20, 75, 120, 83; |
Count= is the number of colors.
Attribute Value= are the following values:
Number of channels associated with this profile's output color space
Vender-supplied flag
Prefix
Suffix
Count*(Color Name, PCS Coords(3), DevCoord*(Num of Channels))
For details, see icSigNamedColor2Tag in icc.h.
You set and get each of the following attributes in the same manner:
Attribute Tag=attribute_name Attribute Value=file_name |
Attribute Tag= is icSigPreview0Tag, icSigPreview1Tag, or icSigPreview2Tag.
Attribute Value= is the name of a file containing data in the structure of an ic_lut8Type or ic_lut16Type. See the the icc.h header file for a description of each of these structures.
Attribute Tag=icSigProfileDescriptionTag; Count=50; Attribute Value=55,56,This is a profile description; |
Count= is the number of characters in the ASCII string description. It must be greater than or equal to the actual number of characters plus a terminating NULL byte.
Attribute Value= are Unicode description length (optional), Scriptcode description length (optional), and ASCII string description.
This attribute is read only via the GETATTR: command and can't be modified by the SETATTR: command.
Attribute Tag=icSigPs2CRD0Tag; Count=30; Attribute Value=0, This is the Ps2CRD0 tag; |
Count= is the number of characters in the ASCII string.
Attribute Value= are data type (0 = ASCII, 1 = binary) and ASCII string. (The script test only supports ASCII.)
Attribute Tag=icSigPs2CRD1Tag; Count=30; Attribute Value=0, This is the Ps2CRD1 tag; |
Count= is the number of characters in the ASCII string.
Attribute Value= are data type (0 = ASCII, 1 = binary) and ASCII string. (The script test only supports ASCII.)
Attribute Tag=icSigPs2CRD2Tag; Count=30; Attribute Value=0, This is the Ps2CRD2 tag; |
Count= is the number of characters in the ASCII string.
Attribute Value= are data type (0 = ASCII, 1 = binary) and ASCII string. (The script test only supports ASCII.)
Attribute Tag=icSigPs2CRD3Tag; Count=30; Attribute Value=0, This is the Ps2CRD3 tag; |
Count= is the number of characters in the ASCII string.
Attribute Value= are data type (0 = ASCII, 1 = binary) and ASCII string. (The script test only supports ASCII.)
Attribute Tag=icSigPs2CSATag; Count=30; Attribute Value=0, This is the Ps2CSA tag; |
Count= is the number of characters in the ASCII string.
Attribute Value= are data type (0 = ASCII, 1 = binary) and ASCII string. (The script test only supports ASCII.)
Attribute Tag=icSigPs2RenderingIntentTag; Count=40; Attribute Value=0, This is the Ps2RenderingIntent tag; |
Count= is the number of characters in the ASCII string.
Attribute Value= are data type (0 = ASCII, 1 = binary) and ASCII string. (The script test only supports ASCII.)
Attribute Tag=icSigRedColorantTag; Attribute Value=99.05,54.26,4.69; |
Attribute Value= are floating point X, Y, and Z values.
Attribute Tag=icSigRedTRCTag; Count=4; Attribute Value=0,20000,40000,65535; |
Count= is the number of values to be supplied.
Attribute Value= are 2-byte values.
Attribute Tag=icSigScreeningDescTag; Count=32; Attribute Value=60,70,This is a screening description; |
Count= is the number of characters in the ASCII string description. It must be greater than or equal to the actual number of characters plus a terminating NULL byte.
Attribute Value= are Unicode description length (optional), Scriptcode description length (optional), and ASCII string description.
Attribute Tag=icSigScreeningTag;Count=3; Attribute Value=0,3,10000, 20000, icSpotShapeRound,30000,40000, icSpotShapeRound,50000,60000,icSpotShapeRound; |
Attribute Value= are the following values (repeat for the number of channels):
For details, see icSigScreeningTag in icc.h.
Attribute Tag=icSigTechnologyTag; Attribute Value=icSigCRTDisplay; |
Attribute Value= is an enumerated type from the ICC header file. See the icTechnology structure in icc.h.
Attribute Tag=icSigUcrBgTag;Count=40; Attribute Value=2,2,100,4,300,400,500,600,End of UcrTag; |
Count= is the number of characters in the ASCII string.
Attribute Value= are the following values:
Number of values in the sine ucr curve
The 2-byte ucr values
Number of values in the bg curve
The 2-byte bg curve values
ASCII string
Attribute Tag=icSigViewingCondDescTag; Count=32; Attribute Value=60,70,This is a viewing description; |
Count= is the number of characters in the ASCII string description. It must be greater than or equal to the actual number of characters plus a terminating NULL byte.
Attribute Value= are Unicode description length (optional), Scriptcode description length (optional), and ASCII string description.
Attribute Tag=icSigViewingConditionsTag; Attribute Value=1.0,.8976,1.198,.756,.5,.034,icIlluminantD50; |
Attribute Value= are values that exactly match fields in the icViewingCondition structure. See the icViewingCondition structure in icc.h.