diff 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
line wrap: on
line diff
--- a/Core/ImageFormats/ImageBuffer.cpp	Fri Jun 06 10:28:02 2014 +0200
+++ b/Core/ImageFormats/ImageBuffer.cpp	Fri Jun 06 11:45:16 2014 +0200
@@ -63,7 +63,18 @@
   }
 
 
-  ImageBuffer::ImageBuffer() : changed_(false)
+  ImageBuffer::ImageBuffer(unsigned int width,
+                           unsigned int height,
+                           PixelFormat format)
+  {
+    Initialize();
+    SetWidth(width);
+    SetHeight(height);
+    SetFormat(format);
+  }
+
+
+  void ImageBuffer::Initialize()
   {
     changed_ = false;
     forceMinimalPitch_ = true;