I am developing an application that loads an image, and then I want to draw some points with the mouse. To mark above. These points should be at a different level, i.e. i do not want to modify image data.
What is the best way to do this? I was thinking of using Direct X, but I have seen that it is a bit obsolete. Does GDI + solve?
Thanks in advance
How about this?
& lt; Border & gt; & Lt; Border.Background & gt; & Lt; ImageBrush ImagesSource = "foo.jpg" /> & Lt; /Border.Background> & Lt; Canvas background = "transparent" /> & Lt; / Border & gt;
Display the image in the background and paint your point on a canvas
which is located at the top of the image.
Edit: This looks in C #:
Boundary limit = new border (); Canvas canvas = new canvas () {background = brush. Transpress}; Grid.AddChild (range); Limit. Children = canvas; Limit. Background = new imagebrush ();
Then you only need to load your image to the limit. Backgill wrapped in an imagebrush.
No comments:
Post a Comment