If you send an open message to pix_image, then the old image is purged. You are correct that there isn't a "close" message.
Can you use pix_multiimage?
Later, Mark
============================ = mdanks@stormfront.com = Lead Programmer PS2 = http://www.danks.org/mark ============================
-----Original Message----- From: Phil C [mailto:pfil@step.polymtl.ca] Sent: Friday, October 20, 2000 4:47 AM To: pd-list@iem.mhsg.ac.at Subject: pix_Image File Closing
gemers,
Is there a way to close a file after it has been opened with the message "Open file1.jpg" sent to a pix_Image. I'm creating a patch that's going to open hundreds of images one after the other and I want a way to close them when I don't need them anymore. The only way I can free a file right now is to close PD. Shouldn't there be a "Close" message. Same thing for the pix_ImageInPlace object.
Philippe
Mark,
Why is the file left opened in the first place? Can't the pix_image object open the JPG, read the data then close the file right away keeping the image data in memory? Does the pix_image need to access the image file again?
purged? Does that mean closing a file or freeing video memory?
On the pix_ImageInPlace Object when I send the "purge" message. The array of images is emptied, but the image files are still opened. why?
Does pix_MultiImage close the files? (I can't try it I'm at work...)
Philippe
If you send an open message to pix_image, then the old image is purged. You are correct that there isn't a "close" message.
Can you use pix_multiimage?
Later, Mark
============================ = mdanks@stormfront.com = Lead Programmer PS2 = http://www.danks.org/mark ============================
-----Original Message----- From: Phil C [mailto:pfil@step.polymtl.ca] Sent: Friday, October 20, 2000 4:47 AM To: pd-list@iem.mhsg.ac.at Subject: pix_Image File Closing
gemers,
Is there a way to close a file after it has been opened with the message "Open file1.jpg" sent to a pix_Image. I'm creating a patch that's going to open hundreds of images one after the other and I want a way to close them when I don't need them anymore. The only way I can free a file right now is to close PD. Shouldn't there be a "Close" message. Same thing for the pix_ImageInPlace object.
Philippe