Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits.
L_OptGetDefaultOptions
L_OptOptimizeBuffer
L_OptOptimizeDir