Loads a JPEG 2000 file from memory.
JPEG 2000 engine handle that was created by the L_Jp2Create function.
Pointer to the file in memory to be loaded.
Size of the file in memory (in bytes)
Pointer to the bitmap handle referencing the bitmap to be filled with image data.
Resulting bitmap pixel depth. If zero , the bitmap will have the original files pixel depth (do not convert).
The desired color order. Possible values are:
|ORDER_RGB|| Read-green-blue order.|
|ORDER_BGR|| Blue green-red order.|
|ORDER_GRAY|| 12 or 16-bit grayscale image. 12 and 16-bit grayscale images are supported in Document and Medical imaging products only.|
|0||The data is 8 bits per pixel or less.|
|ORDER_RGBORGRAY|| Load the image as red, green, blue, OR as a 12 or 16-bit grayscale image. 12 and 16-bit grayscale images are supported in Document/Medical imaging products only.|
|ORDER_BGRORGRAY|| Load the image as blue, green, red, OR as a 12 or 16-bit grayscale image. 12 and 16-bit grayscale images are supported in Document/Medical imaging products only.|
|ORDER_ROMM|| ROMM order. ROMM only supports 24 and 48-bit images.|
|ORDER_BGRORGRAYORROMM|| Load the image as blue, green, red, OR as a 12 or 16-bit grayscale image OR as ROMM. 12 and 16-bit grayscale images are supported in Document/Medical imaging products only.|
Pointer to optional extended load options. Pass NULL to use the default load options.
Pointer to a FILEINFO structure. If nothing is known about the file pass NULL.
Optional callback function for additional processing.
If you do not provide a callback function, pass NULL.
If you do provide a callback function, use the function pointer as the calue of this parameter.
The callback function must adhere to the function prototype described in the FILEREADCALLBACK function.
Void pointer that you can use to pass one or more additional parameters used by the callback function.
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
L_Jp2readMemory loads a JPEG 2000 file from memory. If the file contains multiple images, only the first image is returned. To load all images use either L_Jp2ReadListMemory or L_Jp2ReadCompositeMemory. To load a specific frame or frames, use L_Jp2ReadFramesMemory.
pLoadOptions is used for loading codestreams such as J2K codestreams. All of the engines boxes will be reset and updated with the new loaded boxes only.
Required DLLs and Libraries
For an example, refer to L_Jp2SaveMemory.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries