#include "l_bitmap.h"
L_LTFIL_APIL_INTL_SetJ2KOptions(pOptions)
Sets the file options used by LEADTOOLS when saving J2K or JP2 files.
Pointer to a structure that contains the options to use when loading J2K or JP2 files.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer toReturn Codes. |
The FILEJ2KOPTIONS.uStructSize member must be set before calling this function.
The values set by this function are valid for the current thread. To change the values used by the current thread, this function must be called again.
Required DLLs and Libraries
Win32, x64, Linux.
This example will make it so the next time you save a JPEG2000 or enhanced CMP file, it will be
saved with a 100:1 compression ratio get the current values. I only want to change the compression ratio.
L_INT SetJ2KOptionsExample(L_VOID)
{
L_INT nRet;
FILEJ2KOPTIONS J2KOptions;
nRet = L_GetJ2KOptions( &J2KOptions,sizeof(FILEJ2KOPTIONS));
if(nRet != SUCCESS)
returnnRet;
// set the compression control to make sure we will be
// using the compression control
J2KOptions.uCompressionControl = J2K_COMPRESSION_RATIO;
// set the compression ratio to 100
J2KOptions.fCompressionRatio = 100.0f;
// set the compression options. The next time I save a
// JPEG2000 file, it will be saved with 100:1 compression ratio
nRet = L_SetJ2KOptions (&J2KOptions);
if(nRet != SUCCESS)
returnnRet;
returnSUCCESS;
}
Help Collections
Raster.NET|C API|C++ Class Library|HTML5 JavaScript
Document.NET|C API|C++ Class Library|HTML5 JavaScript
Medical.NET|C API|C++ Class Library|HTML5 JavaScript
Medical Web Viewer.NET
188宝金博怎么下载
Media Foundation.NET|C API|Transforms
支持的平台上
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.