Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

template<class ArrayT>
bool Impala::Core::Array::WritePng ( ArrayT *  src,
Util::IOBuffer *  buffer 
) [inline]

Definition at line 152 of file WritePng.h.

References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CW(), Impala::Util::IOBuffer::Write(), and WritePngToMemory().

00153 {
00154     size_t memBufSize = src->CW() * src->CH() * 3 + 1024;
00155     char* buf = new char[memBufSize];
00156     size_t outSize;
00157     if (!WritePngToMemory(src, buf, memBufSize, &outSize))
00158     {
00159         delete buf;
00160         return false;
00161     }
00162     buffer->Write(buf, outSize);
00163     delete buf;
00164     return true;
00165 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:17:11 2011 for ImpalaSrc by  doxygen 1.5.1