[opengtl-commits] [358] set the dimension of the image

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 358
Author:   cyrille
Date:     2008-09-03 23:03:48 +0200 (Wed, 03 Sep 2008)

Log Message:
-----------
set the dimension of the image

Modified Paths:
--------------
    trunk/OpenGTL/Extensions/RawDC/RawDC.cpp


Modified: trunk/OpenGTL/Extensions/RawDC/RawDC.cpp
===================================================================
--- trunk/OpenGTL/Extensions/RawDC/RawDC.cpp	2008-09-03 21:03:31 UTC (rev 357)
+++ trunk/OpenGTL/Extensions/RawDC/RawDC.cpp	2008-09-03 21:03:48 UTC (rev 358)
@@ -86,6 +86,11 @@
   or_rawfile_release( file );
   uint32_t width, height;
   or_rawdata_dimensions(rawData, &width, &height );
+  if(_region)
+  {
+    _region->setWidth( width );
+    _region->setHeight( height );
+  }
   return new GTLCore::BufferImage( width, height, new OpenRawBuffer( rawData), GTLCore::PixelDescription( GTLCore::Type::UnsignedInteger16, 1 ) ) ;
 }
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/