]> Creatis software - gdcm.git/blobdiff - Example/TestCopyDicom.cxx
* src/*.cxx *.h Reference to License.htm fixed to License.html.
[gdcm.git] / Example / TestCopyDicom.cxx
index f0f7c23388d3618ccecbdc3f9ba77658297a5df5..b07b1afcff63b2447e8069ce34475e52d8a5cbbf 100644 (file)
@@ -47,6 +47,8 @@ int main(int argc, char* argv[])
       return 1;
    }
 
+// don't modify identation in order to let this source xdiffable with ../Test
+
       std::string filename = argv[1];
       std::string output = argv[2];
 
@@ -69,7 +71,7 @@ int main(int argc, char* argv[])
       TagDocEntryHT & Ht = original->GetHeader()->GetEntry();
 
       size_t dataSize = original->GetImageDataSize();
-      void *imageData = original->GetImageData();
+      uint8_t* imageData = original->GetImageData();
   
       //First of all copy the header field by field
   
@@ -87,7 +89,7 @@ int main(int argc, char* argv[])
          if ( gdcmBinEntry* b = dynamic_cast<gdcmBinEntry*>(d) )
          {              
             copy->GetHeader()->ReplaceOrCreateByNumber( 
-                                 b->GetVoidArea(),
+                                 b->GetBinArea(),
                                  b->GetLength(),
                                  b->GetGroup(), 
                                  b->GetElement(),