FUNCTION NewPixMapCallBackProc(userRoutine: PixMapCallBackProcPtr): PixMapCallBackUPP;
{$IFC NOT GENERATINGCFM }
INLINE $2E9F;
{$ENDC}
FUNCTION CallPixMapCallBackProc(progress: LONGINT; refCon: LONGINT; userRoutine: PixMapCallBackUPP): BOOLEAN;
{$IFC NOT GENERATINGCFM}
INLINE $205F, $4E90;
{$ENDC}
{
** Printing Stuff that will be moved later
}
CONST
enableColorMatchingOp = 12;
registerProfileOp = 13;
{ PrGeneral parameter blocks }
TYPE
TEnableColorMatchingBlk = RECORD
iOpCode: INTEGER;
iError: INTEGER;
lReserved: LONGINT;
hPrint: THPrint;
fEnableIt: BOOLEAN;
END;
TRegisterProfileBlk = RECORD
iOpCode: INTEGER;
iError: INTEGER;
lReserved: LONGINT;
hPrint: THPrint;
fRegisterIt: BOOLEAN;
END;
{
** High Level Calls
}
FUNCTION BeginMatching(src: CMProfileHandle; dst: CMProfileHandle; VAR myRef: CMMatchRef): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203c, $000C, 10, $ABEE;
{$ENDC}
PROCEDURE EndMatching(myRef: CMMatchRef);
{$IFC NOT GENERATINGCFM}
INLINE $203c, $0004, 11, $ABEE;
{$ENDC}
FUNCTION GetProfile(deviceType: LONGINT; refNum: LONGINT; aProfile: CMProfileHandle; VAR returnedProfile: CMProfileHandle): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203c, $0010, 5, $ABEE;
{$ENDC}
FUNCTION SetProfile(deviceType: LONGINT; refNum: LONGINT; newProfile: CMProfileHandle): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203c, $000c, 6, $ABEE;
{$ENDC}
FUNCTION SetProfileDescription(deviceType: LONGINT; refNum: LONGINT; deviceData: LONGINT; hProfile: CMProfileHandle): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203c, $0010, 16, $ABEE;
{$ENDC}
FUNCTION GetColorSyncFolderSpec(vRefNum: INTEGER; createFolder: BOOLEAN; VAR foundVRefNum: INTEGER; VAR foundDirID: LONGINT): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203c, $000c, 17, $ABEE;
{$ENDC}
FUNCTION GetIndexedProfile(deviceType: LONGINT; refNum: LONGINT; search: CMProfileSearchRecordHandle; VAR returnProfile: CMProfileHandle; VAR index: LONGINT): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203c, $0014, 18, $ABEE;
{$ENDC}
FUNCTION DeleteDeviceProfile(deviceType: LONGINT; refNum: LONGINT; deleteMe: CMProfileHandle): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203c, $000C, 19, $ABEE;
{$ENDC}
{
** Data interchange routines
}
FUNCTION UseProfile(profile: CMProfileHandle): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203c, $0004, 8, $ABEE;
{$ENDC}
PROCEDURE DrawMatchedPicture(myPicture: PicHandle; dst: CMProfileHandle; VAR myRect: Rect);
{$IFC NOT GENERATINGCFM}
INLINE $203c, $000C, 9, $ABEE;
{$ENDC}
PROCEDURE EnableMatching(enableIt: BOOLEAN);
{$IFC NOT GENERATINGCFM}
INLINE $203c, $0002, 13, $ABEE;
{$ENDC}
{
** Profile concatenation
}
FUNCTION ConcatenateProfiles(thru: CMProfileHandle; dst: CMProfileHandle; VAR newDst: CMProfileHandle): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203c, $000C, 12, $ABEE;
{$ENDC}
{
** Profile manipulation routines
}
PROCEDURE GetProfileName(myProfile: CMProfileHandle; VAR IStringResult: IString);
{$IFC NOT GENERATINGCFM}
INLINE $203c, $0008, 14, $ABEE;
{$ENDC}
FUNCTION GetProfileAdditionalDataOffset(myProfile: CMProfileHandle): LONGINT;
{$IFC NOT GENERATINGCFM}
INLINE $203c, $0004, 15, $ABEE;
{$ENDC}
{
** Low level color calculation routines
}
FUNCTION CWNewColorWorld(VAR myCWorld: CWorld; src: CMProfileHandle; dst: CMProfileHandle): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203c, $000C, 0, $ABEE;
{$ENDC}
PROCEDURE CWDisposeColorWorld(myCWorld: CWorld);
{$IFC NOT GENERATINGCFM}
INLINE $203c, $0004, 1, $ABEE;
{$ENDC}
FUNCTION CWMatchColors(myCWorld: CWorld; myColors: CMColorList; count: LONGINT): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203c, $000c, 2, $ABEE;
{$ENDC}
FUNCTION CWCheckColors(myCWorld: CWorld; myColors: CMColorList; count: LONGINT; result: CMGamutResult): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203c, $0010, 3, $ABEE;
{$ENDC}
FUNCTION CWMatchPixMap(myCWorld: CWorld; VAR myPixMap: PixMap; progressProc: PixMapCallBackUPP; refCon: LONGINT): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203c, $0010, 4, $ABEE;
{$ENDC}
FUNCTION CWCheckPixMap(myCWorld: CWorld; VAR myPixMap: PixMap; progressProc: PixMapCallBackUPP; refCon: LONGINT; VAR resultBitMap: BitMap): CMError;