For a WPF project, I used 3 writeablebitmaps and the Blit method to accomplish something similar in an overridden OnRender method.
- First, I crop the original writeablebitmap, "wbm" and make that the source of a new one, "croppedWBM" with the new size and destination (I just move it over by the amount clipped).
- Then I create a third, "addWBM" which has the position and size of the new area I want to add.
-
Finally, I clear the original and use it to Blit "croppedWBM" and "addWBM" together.