KeepPixelDataIntact Example for C++ 6.0 and later

   // Load a Data Set
   if (m_pLEADDicomDS->LoadDS ("d:\\LEAD14\\dist\\Images\\dicom\\Image1.dic", 0) == DICOM_SUCCESS)
   {
      if (m_pLEADDicomDS->GetKeepPixelDataIntact () == FALSE)
      {
         LPTSTR pszMessage;
         pszMessage = "Would you like to keep the pixel data unchanged?\n" \
                      "If you choose Yes, then the resulting bitmap data " \
                      "will represent exactly what appears inside the " \
                      "DICOM file, but may not display properly. If you " \
                      "choose No, then the resulting bitmap data may not " \
                      "be identical to what appears inside the DICOM file, " \
                      "but will display properly.";
         if (AfxMessageBox(pszMessage, MB_YESNO) == IDYES)
            m_pLEADDicomDS->KeepPixelDataIntact = TRUE;
      }

      if (m_pLEADDicomDS->FindFirstElement (TAG_PIXEL_DATA, FALSE) == DICOM_SUCCESS)
      {
         m_pLEADDicomDS->GetBitmapValue (0, 0, ORDER_BGR, 0);

         // ...
      }
   }