Mercurial > hg > orthanc
diff Core/ImageFormats/ImageBuffer.h @ 853:839be3022203 jpeg
DicomImageInformation
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 06 Jun 2014 11:45:16 +0200 |
parents | 502c49adb5ad |
children | 3c0d0836f704 |
line wrap: on
line diff
--- a/Core/ImageFormats/ImageBuffer.h Fri Jun 06 10:28:02 2014 +0200 +++ b/Core/ImageFormats/ImageBuffer.h Fri Jun 06 11:45:16 2014 +0200 @@ -51,11 +51,20 @@ unsigned int height_; unsigned int pitch_; uint8_t *buffer_; + + void Initialize(); void Allocate(); public: - ImageBuffer(); + ImageBuffer(unsigned int width, + unsigned int height, + PixelFormat format); + + ImageBuffer() + { + Initialize(); + } PixelFormat GetFormat() const {