C
chbqq
Unregistered / Unconfirmed
GUEST, unregistred user!
这是C#判断jpg是CMYK分量还是rgb,delphi不知道有没有对应的函数, 希望能人帮帮忙 private string GetImageFlags(System.Drawing.Image img) { ImageFlags FlagVals = (ImageFlags)Enum.Parse(typeof(ImageFlags), img.Flags.ToString()); return FlagVals.ToString(); }private bool IsCMYK(System.Drawing.Image img) { string FlagVals = GetImageFlags(img); if ((FlagVals.IndexOf("Ycck") > -1) || (FlagVals.IndexOf("Cmyk") > -1)) { return true; } else { return false; } }