LoadOffset method (ILEADRasterIO)
short LoadOffset (ILEADRaster *pRaster, BSTR pszName, long nOffsetBegin, long nBytesToLoad, short iBitsPerPixel, long lPage, long lPages) | |
Overview |
Refer to Loading a Bitmap from a File. |
Remarks
Loads an image from a file from a specified location. Calling this method allows an image file that is embedded in another file to be loaded. The file can be in any supported image file format and bits per pixel, whether compressed or uncompressed. If an image does not exist at the specified location or the specified image size does not match the size of the embedded image, the method will return an error.
When loading an image from a file, LEADTOOLS normally determines the file format from the header. If the format is unrecognized, or there is no header, an error is returned. Raw Fax files do not have headers, therefore a LoadInfo event must be sent when loading raw Fax files.
Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.
For supported formats, refer to Summary of All Supported Image File Formats.
This method is similar to the Load method with the following difference: the file can be loaded starting at any file offset
See Also