comparison Core/Images/PngWriter.h @ 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
48 namespace Orthanc 48 namespace Orthanc
49 { 49 {
50 class PngWriter : public IImageWriter 50 class PngWriter : public IImageWriter
51 { 51 {
52 protected: 52 protected:
53 #if ORTHANC_SANDBOXED == 0
53 virtual void WriteToFileInternal(const std::string& filename, 54 virtual void WriteToFileInternal(const std::string& filename,
54 unsigned int width, 55 unsigned int width,
55 unsigned int height, 56 unsigned int height,
56 unsigned int pitch, 57 unsigned int pitch,
57 PixelFormat format, 58 PixelFormat format,
58 const void* buffer); 59 const void* buffer);
60 #endif
59 61
60 #if ORTHANC_SANDBOXED == 0
61 virtual void WriteToMemoryInternal(std::string& png, 62 virtual void WriteToMemoryInternal(std::string& png,
62 unsigned int width, 63 unsigned int width,
63 unsigned int height, 64 unsigned int height,
64 unsigned int pitch, 65 unsigned int pitch,
65 PixelFormat format, 66 PixelFormat format,
66 const void* buffer); 67 const void* buffer);
67 #endif
68 68
69 private: 69 private:
70 struct PImpl; 70 struct PImpl;
71 boost::shared_ptr<PImpl> pimpl_; 71 boost::shared_ptr<PImpl> pimpl_;
72 72