Available in the LEADTOOLS Imaging toolkit. |
J2KTargetFileSize example for Visual Basic
' compress a 30K JPEG2000 file
LEAD1.J2KCompressionControl = J2K_COMP_TARGETSIZE
LEAD1.J2KTargetFileSize = 30 * 1024
LEAD1.Save "c:\temp\30k.j2k", FILE_J2K, 0, 0, SAVE_OVERWRITE