Add SaveToFile method to IPixelFrameBuffer
To better support effect development, it would be helpful to be able to save frames to a bitmap on the file system for debugging. I have been doing this when needed in the effect but I have to lookup or find the code to do it.
Pulling the bitmap into Visual Studio displays the pixels nice and large for analysis.
Thinking out loud here, but maybe we wrap some logic in debug constructs in the base pixel effect class that would have the save logic in it and also provide a checkbox field in the effect editor to enable the save function for that effect. It would only show up in debug compiles then and would have a way to turn it on at the effect you are testing. There would not need to be any persistence of that field value, just a runtime setting that defaults to off.
Haven't given that part much thought. For this bars effect I was calling
save code inside the effect to save off the first frame.
On Tue, Dec 29, 2020 at 6:34 PM Jeff Uchitjil (JIRA) <firstname.lastname@example.org>
I can certainly see the value in this. Did you have any ideas on how to enable it when needed?