I have created an Ellipse. How would I then convert that Ellipse to a ImageDrawing?
Essentially what I am trying to do is take 3 ImageDrawings, (TopDrawing a MiddleDrawing and BottomDrawing),
Stack them on top of eachother to create a Single drawing. But I alsow what the user to be able to rotate the middle drawing while the other layers, namely the bottom and top, stay still.
I have to do this in code and not XAML because the entity is database driven.
The way that I got the 3 images to stack was by using a DrawingGroup.
The problem is that I cant rotate the middle drawing to lets say 23.
I hope I explained this clearly. It was suggested that I try using Ellipses but I need to convert them to a ImageDrawing.
Any help would be great.
Why can't you use XAML? here is a gauge I whipped up that is very scale-able the can be bound to any data you want.
XAML:
Code Behind:
Test Window:
You can of course spruce up the gauge a bit.
Edit: Using Images instead of polygones:
In Code Behind:
imgBack.Source = new BitmapImage(new Uri(@"c:\yourfilelocation"));