template<class ArrayT>
Definition at line 134 of file WritePng.h. References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CW(), and WritePngToMemory(). Referenced by WriteFile(), and WritePng(). 00135 { 00136 Array2dScalarUInt8* res = 0; 00137 size_t bufSize = src->CW() * src->CH() * 3 + 1024; 00138 char* buf = new char[bufSize]; 00139 size_t outSize; 00140 if (!WritePngToMemory(src, buf, bufSize, &outSize)) 00141 { 00142 delete buf; 00143 return res; 00144 } 00145 res = MakeFromData<Array2dScalarUInt8>((UInt8*) buf, bufSize, 1); 00146 delete buf; 00147 return res; 00148 }
Here is the call graph for this function:
|