Can it be possible to make a movie(avi) from frames with transparent object. ??

Hi i am trying to make a movie from the frame in which i used alpha command
h=imagesc(x,y,AA);
h1=fill(xhorizontal,yhorizontal1,'b');
alpha(h1,0.2)
F=getframe(gcf);
drawnow;
writeVideo(vidObj,F);
After the simulation whenever i open the movie , all the frames become transparent and the AA vector disappears. any solution for making AA visible and the h1 handle transparent

4 Comments

Are you saying that absolutely everything is transparent, hidden, or not shown at all? You don't see anything at all, just whatever application or desktop is behind your video buffer? That sounds weird.
i cannot see my plots, but i only see a 2D transparent frame
Its basically a 2D matrix showing a plane wave spectrum.If i dont use the alpha function the field i.e AA looks like this, (i want these blue side blocks to be transparent so i get handles of each block i.e h1,h2 h3 and h4, and use alpha function to make them transparent but after doing this step i AA disapears)

Sign in to comment.

 Accepted Answer

The best way to incorporate transparency in the video is by using "export_fig(gcf)" function. It's little bit slow but is easy to implement

More Answers (0)

Products

Asked:

on 15 Dec 2014

Answered:

on 20 Dec 2014

Community Treasure Hunt

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

Start Hunting!