Convert RGB color to CMYK?

前端 未结 7 1718
谎友^
谎友^ 2020-11-28 12:09

I\'m looking for an algorithm to convert an RGB color to CMYK. Photoshop is performing the conversion below:

R = 220 G = 233 B = 174

C = 15 M = 0 Y = 40 K =

7条回答
  •  南方客
    南方客 (楼主)
    2020-11-28 13:06

    I agree with the previous answers, but I want to say that:

    if ( K == 1 ) 
    { 
       C = 0
       M = 0
       Y = 0
    } 
    

    It can be if r = g = b = 0.

提交回复
热议问题