0xDEADBEEF
0xDEADBEEF

Reputation: 3431

How to paint a WPF-Shape mathematically?

I want to paint an WPF-Element like a colorwheel, you know from the HSV color space. i dont know how to do this, i havnt found a possibility based on the standard brushes (SolidColorBrush, GradientBrush, etc)

How is a (mathematical) painting possible on wpf-shapes?

Upvotes: 3

Views: 740

Answers (1)

Davide Piras
Davide Piras

Reputation: 44595

when you talk about Brushes and Pens you are talking about GDI+ and in GDI+ you have full control on anything since you are basically deciding which pixel to turn on, not so low of course but using lines, polygons and paths.

for a comparison between GDI+ and WPF or simply for some info regarding how to move from the first to the second, check this one: C# Transition between GDI+ and WPF there are some answers with lots of details

Upvotes: 2

Related Questions