开发者

image conversion

开发者 https://www.devze.com 2022-12-16 05:03 出处:网络
I need to convert a RGB (jpg) grayscale CMYK using only to black channel (K). I\'m trying to do this with imageglue, but th开发者_JAVA技巧e result is not what i\'m looking for since it converts the g

I need to convert a RGB (jpg) grayscale CMYK using only to black channel (K).

I'm trying to do this with imageglue, but th开发者_JAVA技巧e result is not what i'm looking for since it converts the grays using the C,M and Y channel and leaves the black channel to 0%.

What I need is if anyone has experience in using any other library/api in .net that could work?


I would start by looking at the ColorConvertedBitmap class in WPF. Here is a link to the docs and a basic example:

http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.colorconvertedbitmap(VS.85).aspx


Have you triedAForge.Net?

There is also ImageMagick, a c++ framework for image processing, with a .net wrapper (google for MagickNet)


Her is RGB to/from CMYK question which is related this one:

How is 1-bit bitmap data converted to 8bit (24bpp)?


I found The bitmap transform classes useful when trying to do some image format conversions but ... CYMK is one of the most complicated conversions you can tackle because there is more than one way to represent some colours. In particular equal CYM percentages give you shades of grey which are equivalent to the same percentage of K. Printers often use undercolour removal/transformation which normalises CYMK so that the a large common percentage is taken from CYM and transfered to the K. This is suppose to give purer blacks and grey tones. So even if you have a greyscale image represented using nothing but CYM with a zero black channel it could still print using nothing but K when you get it to a printer using undercolour removal.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号