I need to store a big Visual as bitmap image using RenderTargetBitmap without obtaining an Out-Of-Memory exception. What is the best way to achieve this?
I have no problem storing a Visual the size of the screen (let say 1920x1200 pixels), but the crash occurs when the visual is very big (20000x20000 pixels).
Maybe not using RenderTargetBitmap? are there alternatives?
NOTE: The final store target is a file, either a lossy .jpg or a losseless .png.