There is a mechanism for you to modify the contents of a meta file.
Call EnumEnhMetaFile
passing a callback function, EnhMetaFileProc
. The callback function is called for each record in the metafile. You can take a copy of this record, modify it, and then pass it to PlayEnhMetaFileRecord
.
So, you could look for records that specified colours, and make whatever modifications you need.