windowscolorsystemandapianoverview内容摘要:
These routines now work with DMPs, CAMPs, and GMMPs, as well as ICC profiles Profile/Device Association BOOL WINAPI AssociateColorProfileWithDevice( PCTSTR pMachineName, PCTSTR pProfileName, PCTSTR pDeviceName )。 BOOL WINAPI DisassociateColorProfileFromDevice( PCTSTR pMachineName, PCTSTR pProfileName, PCTSTR pDeviceName )。 These routines now work with DMPs, CAMPs, and GMMPs, as well as ICC profiles Get/Set System Default Profile BOOL WINAPI SetStandardColorSpaceProfile( PCTSTR pMachineName, DWORD dwProfileID, PCSTR pProfilename // DMP or ICC profile )。 BOOL WINAPI GetStandardColorSpaceProfile( PCTSTR pMachineName, DWORD dwProfileID, PTSTR pProfileName, // DMP or ICC profile PDWORD pdwSize )。 Set Default Color Profiles (New API ) BOOL WINAPI WcsSetDefaultColorProfile( PCTSTR pDeviceName, //Null = system level default COLORPROFILETYPE cptValue, LPCWSTR pProfilename )。 enum { CPT_ALL = 0, Set/Get all default profiles for device CPT_WINDOWS_COLOR_SPACE, Set/Get System Standard color space CPT_sRGB, Set/Get System sRGB profile CPT_ICC, Set/Get default ICC profile for device, OS CPT_DMP, Set/Get default DMP for device or OS CPT_CAMP, Set/Get default CAMP for device or OS CPT_GMMP_ABSOLUTE_COLORIMETRIC, Set/Get GMMP to map to Abs Col RI CPT_GMMP_RELATIVE_COLORIMETRIC, Set/Get GMMP to map to Rel Col RI CPT_GMMP_PERCEPTUAL, Set/Get GMMP to map to Percep RI CPT_GMMP_SATURATION, Set/Get GMMP to map to Sat RI } COLORPROFILETYPE。 Get Default Color Profiles (New APIs) Get size of buffer required for pProfileName BOOL WINAPI WcsGetDefaultColorProfileSize( PCTSTR pDeviceName, COLORPROFILETYPE cptValue, PDWORD pdwSize )。 BOOL WINAPI WcsGetDefaultColorProfile( PCTSTR pDeviceName, COLORPROFILETYPE cptValue, DWORD dwSize, LPWSTR pProfileName )。 Get Color Profiles Via: GetStandardColorSpaceProfile WcsGetDefaultColorProfile EnumColorProfiles PrintTicket/PrintCapabilities mechanism See DDC session PrintTicket and PrintCapabilities Overview of Communications Schema and API These get you profile filenames Then use OpenColorProfile or WcsOpenColorProfile to obtain HPROFILEs EnumColorProfiles BOOL WINAPI EnumColorProfiles( PCTSTR pMachineName, PENUMTYPE pEnumRecord, PBYTE pBuffer, PDWORD pdwSize, PDWORD pnProfiles )。 This API will support WCS profiles in addition to ICC profiles If pEnumRecorddwFields has ET_SIGNATURE set and pEnumRecord dwSignature equals “cdmp” then all matching DMPs are enumerated. Similar functionality is implemented for dwSignature of “camp” and dwSignature of “gmmp”. WCS DMP profiles do not require the equivalent of ICC „devs‟ tags and so, that legacy matching criterion is not supported when enumerating WCS DMPs Get an HPROFILE: OpenColorProfile HPROFILE WINAPI OpenColorProfile( PPROFILE pProfile, // ICC or DMP DWORD dwDesiredAccess, DWORD dwShareMode, DWORD dwCreationMode )。 This API will support WCS DMPs, both by filename and as a DMP image in a membuffer Default CAMP and GMMP from Registry will be used with a DMP Get an HPROFILE: WcsOpenColorProfile (New) HPROFILE WINAPI WcsOpenColorProfile( PPROFILE pDMPProfile, // required – ICC or DMP PPROFILE pCAMPProfile, // required with DMP (ignored // with ICC) PPROFILE pGMMPProfile, // optional (ignored with ICC) DWORD dwDesiredAccess, DWORD dwShareMode, DWORD dwCreationMode )。 pGMMPProfile can be NULL. In the NULL case, the default GMMP will be used (configured with WcsSetDefaultColorProfile). pGMMPProfile may be set to DEFER_UNTIL_RUNTIME. In the DEFER_UNTIL_RUNTIME case GMMP usage will be determined by profile sequence in the color transform context Open a Color Profile ICC or DMP filename OpenColorProfile() Default Profiles in Registry DMP filename CAMP filename GMMP filename WcsOpenColorProfile() HPROFILE Construct Color Transforms CreateColorTransform CreateMulti。windowscolorsystemandapianoverview
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。
用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。