WPF is meant for vector graphics, not for bitmaps.
If you want to display a bitmap in WPF and need to be able to efficiently update it in memory, look at the
WriteableBitmap[
^] class.
If you want to render WPF vector contents onto a bitmap, take a look at
RenderTargetBitmap[
^].