#include "ltwrappr.h"
L_INT LOptimize::GetDefaultOptions(pOptImgOptions, uStructSize)
pOPTIMIZEIMAGEOPTIONS pOptImgOptions; |
pointer to the OPTIMIZEIMAGEOPTIONS structure |
L_UINT32 uStructSize; |
size of the OPTIMIZEIMAGEOPTIONS structure |
Gets the default optimization options used by LEADTOOLS for optimizing an image.
Parameter |
Description |
pOptImgOptions |
Pointer to the OPTIMIZEIMAGEOPTIONS structure to be updated with the default optimization options used for optimizing an image. |
uStructSize |
Size in bytes, of the structure pointed to by pOptImgOptions, for versioning. Use sizeof(OPTIMIZEIMAGEOPTIONS). |
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Before calling this function, you must declare a variable of data type OPTIMIZEIMAGEOPTIONS. Then, pass the address of the variable in the pOptImgOptions parameter. The uStructSize member must be set to the size of the OPTIMIZEIMAGEOPTIONS structure in bytes. This function will update the variable with the default optimization options used for optimizing an image.
For more information, refer to the OPTIMIZEIMAGEOPTIONS structure.
This function does not support 32-bit grayscale images. It returns the error code ERROR_GRAY32_UNSUPPORTED if a 32-bit grayscale image is passed to this function.
Required DLLs and Libraries
LTIMGOPT For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Win32, x64.
Functions: |
LOptimize::OptimizeBuffer, LOptimize::OptimizeBufferCallBack, LOptimize::OptimizeDir, LOptimize::OptimizeDirCallBack, Class Members |
Topics: |
|
|
For an example, refer to LOptimize::OptimizeBuffer.
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
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document