Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
852:5944b8b80842 | 853:839be3022203 |
---|---|
49 PixelFormat format_; | 49 PixelFormat format_; |
50 unsigned int width_; | 50 unsigned int width_; |
51 unsigned int height_; | 51 unsigned int height_; |
52 unsigned int pitch_; | 52 unsigned int pitch_; |
53 uint8_t *buffer_; | 53 uint8_t *buffer_; |
54 | |
55 void Initialize(); | |
54 | 56 |
55 void Allocate(); | 57 void Allocate(); |
56 | 58 |
57 public: | 59 public: |
58 ImageBuffer(); | 60 ImageBuffer(unsigned int width, |
61 unsigned int height, | |
62 PixelFormat format); | |
63 | |
64 ImageBuffer() | |
65 { | |
66 Initialize(); | |
67 } | |
59 | 68 |
60 PixelFormat GetFormat() const | 69 PixelFormat GetFormat() const |
61 { | 70 { |
62 return format_; | 71 return format_; |
63 } | 72 } |