We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Exporting in TIFF sequence
Page Index Toggle Pages: 1
Exporting in TIFF sequence (Read 421 times)
Exporting in TIFF sequence
May 31st, 2008, 12:27pm
 
How would I export a TIFF image sequence file that has an alpha channel? Also, what is the code to define it to stop at a particular frame? I wouldn't want to use noLoop.

It would be great if the filenames are arranged in sequence, like "picture001 - picture999"
Re: Exporting in TIFF sequence
Reply #1 - May 31st, 2008, 12:37pm
 
Code:
if(frameCount<1000)
saveFrame("picture###.tif");

That will sort out the numbering, and only saving a limited number of images problem. However I'm not sure if it's possible to save alpha information out.
Re: Exporting in TIFF sequence
Reply #2 - Jun 2nd, 2008, 11:45am
 
I've got a feeling that if you call all your drawing commands to an off screen buffer, you can save alpha from those.
Re: Exporting in TIFF sequence
Reply #3 - Jun 2nd, 2008, 2:46pm
 
Manic wrote on Jun 2nd, 2008, 11:45am:
I've got a feeling that if you call all your drawing commands to an off screen buffer, you can save alpha from those.

yes, that's correct:
http://processing.org/reference/createGraphics_.html
Page Index Toggle Pages: 1