Available in the LEADTOOLS Imaging toolkit. |
J2KTargetFileSize example for C++ 4.0 and later
// save a 30K JPEG2000 file
m_LEAD1.SetJ2KCompressionControl(J2K_COMP_TARGETSIZE);
m_LEAD1.SetJ2KTargetFileSize(30 * 1024);
m_LEAD1.Save("c:\\temp\\30k.j2k", FILE_J2K, 0, 0, SAVE_OVERWRITE);