Mercurial > hg > orthanc
comparison Core/ImageFormats/PngWriter.h @ 844:502c49adb5ad jpeg
jpeg lossless
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Jun 2014 14:08:23 +0200 |
parents | 777b6b694da6 |
children | a546b05a43da |
comparison
equal
deleted
inserted
replaced
843:6a5cceec04ef | 844:502c49adb5ad |
---|---|
30 **/ | 30 **/ |
31 | 31 |
32 | 32 |
33 #pragma once | 33 #pragma once |
34 | 34 |
35 #include "../Enumerations.h" | 35 #include "ImageAccessor.h" |
36 | 36 |
37 #include <boost/shared_ptr.hpp> | 37 #include <boost/shared_ptr.hpp> |
38 #include <string> | 38 #include <string> |
39 | 39 |
40 namespace Orthanc | 40 namespace Orthanc |
72 unsigned int width, | 72 unsigned int width, |
73 unsigned int height, | 73 unsigned int height, |
74 unsigned int pitch, | 74 unsigned int pitch, |
75 PixelFormat format, | 75 PixelFormat format, |
76 const void* buffer); | 76 const void* buffer); |
77 | |
78 void WriteToFile(const char* filename, | |
79 const ImageAccessor& accessor) | |
80 { | |
81 WriteToFile(filename, accessor.GetWidth(), accessor.GetHeight(), | |
82 accessor.GetPitch(), accessor.GetFormat(), accessor.GetBuffer()); | |
83 } | |
84 | |
85 void WriteToMemory(std::string& png, | |
86 const ImageAccessor& accessor) | |
87 { | |
88 WriteToMemory(png, accessor.GetWidth(), accessor.GetHeight(), | |
89 accessor.GetPitch(), accessor.GetFormat(), accessor.GetBuffer()); | |
90 } | |
77 }; | 91 }; |
78 } | 92 } |