J2KCompressionRatio example for C++ 5.0 and later

   ILEADRasterIO *pIO=NULL;

   ::CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL,
                      IID_ILEADRasterIO, (void**)&pIO);
   // compress a JPEG2000 file using 100:1 comp ratio
   pIO->J2KSetDefaults ();
   pIO->J2KCompressionControl = J2K_COMP_RATIO;
   pIO->J2KCompressionRatio = 100.0f;
   pIO->Save(m_LEADRasterView1.GetRaster(),
             "c:\\temp\\100_to_1.j2k",
             FILE_J2K, 0, (QFactorConstants)0, SAVE_OVERWRITE);
   pIO->Release();