如何显示圆形的颜色选择? [英] How to display a circle selection of color ?

查看:96
本文介绍了如何显示圆形的颜色选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的

我想在应用程序的一角显示一个圆圈.
然后该圆圈内容将显示所有可用的颜色
然后我想用鼠标使该圆圈依次旋转滚动颜色.

I would like to display a circle in the corner of my application.
Then that circle content will display all available colors
Then with the mouse I would like to be ablt to rotate that circle in order to scroll colors.

然后单击选定的颜色,然后将检索我可以附加到墨水的rgb值.

Then clicking on the selected color will then retrive its rgb value that I could attached to an ink.

我如何构建带有颜色的圆并能够在鼠标移动事件时旋转该圆?

How can i build this circle with colors in and be able to rotate that circle on mouse move event ?

要寻求帮助

致谢
Serge

regards
Serge

 

推荐答案

您可以执行此操作在WPF中. MSDN上有一个有关如何实现颜色选择器的示例:您可以从此处 http://msdn下载.microsoft.com/en-us/library/ms771620.aspx

要构建圆形,可以使用现成的Ellipse类: http://msdn.microsoft.com/zh-CN/library/system.windows.shapes.ellipse.aspx

For building the circle, you can use the out of the box Ellipse class: http://msdn.microsoft.com/en-us/library/system.windows.shapes.ellipse.aspx

对于旋转,您可以在圆上使用RotateTransform: http://msdn.microsoft.com/en-us/library/system.windows.media.rotatetransform.aspx

And for rotating you can use a RotateTransform on the circle: http://msdn.microsoft.com/en-us/library/system.windows.media.rotatetransform.aspx


这篇关于如何显示圆形的颜色选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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