transform - How to draw color wheel in WPF application? -


I started playing with WPF and wanted to draw on a form.

First of all, try using LinearGradientBrush on ArcSegment like this:

& Lt; GradientStop color = "orange" offset = "0.2" /> & Lt; GradientStop color = "Yellow" offset = "0.35" /> & Lt; GradientStop color = "green" offset = "0.5" /> & Lt; GradientStop color = "blue" offset = "0.65" /> & Lt; GradientStop color = "Indigo" offset = "0.75" /> & Lt; GradientStop color = "violet" offset = "0.9" /> & Lt; / LinearGradientBrush & gt; & Lt; /Path.Stroke> & Lt; Path.Data & gt; & Lt; Pathgometry & gt; & Lt; Pathfigener IsClosed = "True" StartPoint = "25,70" & gt; & Lt; ArcSegment point = "25,71" islagereak = "true" size = "50,50" sweep direction = "cloakword" /> & Lt; / PathFigure & gt; & Lt; / PathGeometry & gt; & Lt; /Path.Data> & Lt; / Path & gt;

Failed, because the gradient was still horizontal.

Another idea is that after turning the gradient I have to turn it in any way. But I can not get an afreshial transfer.

If there is no standard change then is it possible to change this custom? Or should I draw a colorful wheel from pixels?

Please have any thoughts, please.

sample xaml:

  Lt; Ellipse Width = "300" height = "300" = "White" & gt; & Lt; Ellipse.Effect & gt; & Lt; Effects: HSV / Weif Effect / & gt; & Lt; /Ellipse.Effect> & Lt; / Ellipse & gt;  

Note that to work in oval, the brush should be set to , this can be a color.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -