Add SaveToFile method to IPixelFrameBuffer

Description

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.

 

 

Activity

Show:
Jeff Uchitjil
December 30, 2020, 11:00 PM

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.

John Baur
December 30, 2020, 9:35 PM

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) <bugs@vixenlights.com>

Jeff Uchitjil
December 30, 2020, 12:34 AM

I can certainly see the value in this. Did you have any ideas on how to enable it when needed?

Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Unassigned

Reporter

John Baur