色相旋转使用C#ImageAttributes [英] Rotate Hue using ImageAttributes in C#

查看:1155
本文介绍了色相旋转使用C#ImageAttributes的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何可以旋转使用图像的色相GDI +的 ImageAttributes (和presumably 嘉洛斯)?

How can I rotate the hue of an image using GDI+'s ImageAttributes (and presumably ColorMatrix)?

请注意,我想旋转色相,不着色的图像。

Note that I want to rotate the hue, not tint the image.

修改:通过旋转的色相,我的意思是图像中的每个彩色应转向一个不同的颜色,而不是使整个图像的一个颜色的色光

EDIT: By rotating the hue, I mean that each color in the image should be shifted to a different color, as opposed to making the entire image a shade of one color.

例如,

原文:

Original:

旋转了:

Rotated: or

推荐答案

我结束了移植的 QColorMatrix 以C#和使用其 RotateHue 方法。

I ended up porting QColorMatrix to C# and using its RotateHue method.

这篇关于色相旋转使用C#ImageAttributes的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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