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 & HelpPrograms › Encoding pixels as png format in bytes(not saving)
Page Index Toggle Pages: 1
Encoding pixels as png format in bytes(not saving) (Read 287 times)
Encoding pixels as png format in bytes(not saving)
Mar 29th, 2010, 7:53am
 
Hi,

is there any way to save all pixels of the current frame into a .png data bytes? I am not talking about saving it into a .png file, but I am talking about converting pixels on the screen into byte[] in png format.
Re: Encoding pixels as png format in bytes(not saving)
Reply #1 - Mar 29th, 2010, 8:24am
 
Look at the code I show in save to web --- image export, it does precisely that, to send the bytes to a server.
Page Index Toggle Pages: 1