WPF Border around transparent image

I'm trying to do a kind of "magic wand tool" selection that some image editors have, and I just can't figure out how I would go about drawing a border around the pixels. I have a mask of the pixels I'm selecting, I just need to draw marching ants around it.