Mercurial > hg > orthanc
comparison Core/ImageFormats/ImageBuffer.cpp @ 853:839be3022203 jpeg
DicomImageInformation
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 06 Jun 2014 11:45:16 +0200 |
parents | 502c49adb5ad |
children | 80c7e53a69b5 |
comparison
equal
deleted
inserted
replaced
852:5944b8b80842 | 853:839be3022203 |
---|---|
61 changed_ = false; | 61 changed_ = false; |
62 } | 62 } |
63 } | 63 } |
64 | 64 |
65 | 65 |
66 ImageBuffer::ImageBuffer() : changed_(false) | 66 ImageBuffer::ImageBuffer(unsigned int width, |
67 unsigned int height, | |
68 PixelFormat format) | |
69 { | |
70 Initialize(); | |
71 SetWidth(width); | |
72 SetHeight(height); | |
73 SetFormat(format); | |
74 } | |
75 | |
76 | |
77 void ImageBuffer::Initialize() | |
67 { | 78 { |
68 changed_ = false; | 79 changed_ = false; |
69 forceMinimalPitch_ = true; | 80 forceMinimalPitch_ = true; |
70 format_ = PixelFormat_Grayscale8; | 81 format_ = PixelFormat_Grayscale8; |
71 width_ = 0; | 82 width_ = 0; |