How to merge two RenderTargetBitmap instances?

771 views Asked by At

Hey, guys. I need to merge two RenderTargetBitmaps of the same size into one. How would I do that?

thanks.

1

There are 1 answers

2
HCL On BEST ANSWER

Wyh not create a third RenderTargetBitmap and render in this the both images you created with your RenderTargetBitmap_a and RenderTargetBitmap_b.

Something like:

...

Image imgA = new Image(){Source=renderTargetBitmapA};
Image imgB = new Image(){Source=renderTargetBitmapB};

renderTargetBitmapDest.Render(imgA);
renderTargetBitmapDest.Render(imgB);

...