LoadOffset method (ILEADRasterIO)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

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

Elements

CMYKRasterCount property, LoadFileCMYKArray method, SaveFileCMYKArray method, RasterIO property, EnablePaintCMYKArray property, CMYKRaster property, LoadStatus property, Load method, LoadStamp method, BitmapDataPath method, LoadMemory method, StartFeedLoad method, LoadInfo event, EnableProgressEvent property, SetLoadResolution method, SaveOffset Method

Topics:

Raster Images: Loading Files
Multipage File Formats
Loading a Bitmap from a File
Summary of All Supported Image File Formats

 

Handling CMYK Files as Separate Bitmaps