How can I achieve trasparency in video output fiiles ?

2 views (last 30 days)
I am running R2013b on windows 7. With previous versions I used the function 'avifile' to create video files and the renderer 'OpenGL'. This combination allowed me to record complex graphical avis with transparency. My current combination of R2013b+W7 does not support 'avifile' I have to use a 'VideoWriter' object. When i do this with the renderer 'OpenGL' the output is mostly white space. If i specify the renderer 'zbuffer' transparency is not supported.
How can I achieve the functionality that I had with Windows XP and previous versions of Matlab ?

Answers (1)

Chad Greene
Chad Greene on 5 Sep 2014
Can you use export_fig? The syntax would be something like this, and you could specify options such as renderer, anti-aliasing, -nocrop, etc.
frame = export_fig(gcf);
writeVideo(vidObj,frame);

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!