I have a class derived from Image, to which I set the Source to a BitmapSource and override the OnRender(DrawingContext dc) method so I can overlay the image with some info.
What I want to do is to render this BitmapSource with no interpolation, so the original image's pixel boundaries are apparent when zoomed into. But I could not find any property of the DrawingContext that would allow me to set the interpolation mode for bitmaps.
How can I accomplish that?