/[H9]/trunk/tntnet/dynamic/temperaturegraph.ecpp
ViewVC logotype

Diff of /trunk/tntnet/dynamic/temperaturegraph.ecpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 195 by torben, Sat Dec 8 16:47:03 2007 UTC revision 196 by torben, Sat Dec 8 19:19:07 2007 UTC
# Line 86  for (unsigned int i=0; i<res.size(); ++i Line 86  for (unsigned int i=0; i<res.size(); ++i
86  // echo the image to the browser...  // echo the image to the browser...
87  reply.setContentType("image/png");  reply.setContentType("image/png");
88  int size;  int size;
89  unsigned char* ptr = (unsigned char*) image.Png(&size);  unsigned char* ptr = (unsigned char*) image.Png(&size,1);
90    
91  for (int i=0; i<size; ++i)  for (int i=0; i<size; ++i)
92          reply.out() << ptr[i];          reply.out() << ptr[i];

Legend:
Removed from v.195  
changed lines
  Added in v.196

  ViewVC Help
Powered by ViewVC 1.1.20