适用的ICC色彩描述文件在C#中的图像(DOTNET) [英] Apply an ICC Color Profile to an image in C# (Dotnet)

查看:929
本文介绍了适用的ICC色彩描述文件在C#中的图像(DOTNET)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个人如何转换图像从一个颜色配置文件到另一个(屏幕打印机或扫描仪屏幕)。在Visual C ++中,你将使用功能ICM.h,有没有管理的方式与GDI为此+?

How does one convert an image from one color profile to another (screen to printer, or scanner to screen). In Visual C++ you would use the function in ICM.h, is there a managed way to do this with GDI+?

我需要使用GDI +,不WPF。我想preFER有一个托管解决方案,但如果没有,我想PInkvoke将不得不就够了。

I need to use GDI+, not WPF. I'd prefer to have a managed solution, but if it is not available, I guess PInkvoke will have to suffice.

推荐答案

有一些解决方案。

  1. 有关GDI +,看看这篇文章在MSDN
  2. 对于WPF(.NET 3.0),请参阅<一href="http://msdn.microsoft.com/en-us/library/system.windows.media.color.colorcontext%28VS.85%29.aspx"相对=nofollow> System.Windows.Media 命名空间。有许多不同类的,如 BitmapEn codeR ,具有的 Col​​orContext ,该再presents国际色彩联盟(ICC)或图像颜色管理(ICM)的颜色配置文件与位图图像有关。
  1. For GDI+, check out this article at MSDN.
  2. For WPF (.NET 3.0), see the System.Windows.Media namespace. There are a number of different classes, such as the BitmapEncoder, that have the concept of a ColorContext, which "Represents the International Color Consortium (ICC) or Image Color Management (ICM) color profile that is associated with a bitmap image."

这两个看似pretty的复杂,所以总有买别人的code的选项。 Atalasoft的 DotImage Photo Pro的已建成的ICC配置文件的设置功能。在code是昂贵的;一个开发许可证几乎是2K。但基于其在dotnet的社区参与,我想给他们一个漩涡。

Both of these seem pretty complex, so there's always the option of buying somebody else's code. Atalasoft's DotImage Photo Pro has ICC profile setting capabilities built in. The code is expensive; a dev license is almost 2k. But based on their participation in the dotnet community, I'd give them a whirl.

这篇关于适用的ICC色彩描述文件在C#中的图像(DOTNET)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆