假设我有4个位图,即CMYK,所有位图都是1像素/位,并且颜色不同,我想将它们转换为8位/颜色(24bpp)位图,应该如何操作?
如果数据看起来像这样:
// the Cyan separation
CCCC CCCC CCCC CCCC CCCC CCCC CCCC CCCC
...
// the magenta separation, and so on..
MMMM MMMM MMMM MMMM MMMM MMMM MMMM MMMM
...
假设青色的RGB值为(0,255,255),在像素0(第一个像素)处,我有一个值为1(开启),洋红色的RGB值为(255,255,0),在同一像素处,也有一个值为1。那么第一个RGB像素会是什么样子呢?它会是这个样子吗?
BBBB BBBB GGGG GGGG RRRR RRRR
// would this 3-byte sequence actually be 255,255,255
// because the cyan has (0,255,255) and the
// magenta has (255,255,0)?
谢谢,只是对如何将1位分离转换为8位图像感到困惑。谢谢。
(R,G,B) = ((1-C)(1-K), (1-M)(1-K), (1-Y)(1-K))
。 - Tordek