J2KCompressionRatio Example for C++ Builder
LEADRasterIO * pRasterIO = NULL;
CoCreateInstance (CLSID_LEADRasterIO, NULL, CLSCTX_ALL,
IID_ILEADRasterIO, (void**)&pRasterIO);
// Compress a JPEG2000 file using 100:1 comp ratio
pRasterIO->J2KSetDefaults ();
pRasterIO->J2KCompressionControl_= J2K_COMP_RATIO;
pRasterIO->J2KCompressionRatio = 100;
pRasterIO->Save (LEADRasterView1->Raster, AnsiToOLESTR ("c:\\temp\\100_to_1.j2k"), FILE_J2K, 0, (QFactorConstants) 0, SAVE_OVERWRITE);
pRasterIO->Release();