comparison Core/Images/PngWriter.cpp @ 2699:52217dc47a4e

new image/pam MIME TYPE supported in /instances/../frames/../image-uint8... routes
author am@osimis.io
date Thu, 05 Jul 2018 12:25:00 +0200
parents 878b59270859
children 4e43e67f8ecf
comparison
equal deleted inserted replaced
2687:2c684841da15 2699:52217dc47a4e
246 buffer->AddChunk(reinterpret_cast<const char*>(data), size); 246 buffer->AddChunk(reinterpret_cast<const char*>(data), size);
247 } 247 }
248 248
249 249
250 250
251 #if ORTHANC_SANDBOXED == 0
252 void PngWriter::WriteToMemoryInternal(std::string& png, 251 void PngWriter::WriteToMemoryInternal(std::string& png,
253 unsigned int width, 252 unsigned int width,
254 unsigned int height, 253 unsigned int height,
255 unsigned int pitch, 254 unsigned int pitch,
256 PixelFormat format, 255 PixelFormat format,
270 269
271 Compress(width, height, pitch, format); 270 Compress(width, height, pitch, format);
272 271
273 chunks.Flatten(png); 272 chunks.Flatten(png);
274 } 273 }
275 #endif
276 } 274 }