Load method (ILEADRasterIO)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

short Load (ILEADRaster *pRaster, BSTR pszName, short iBitsPerPixel, long lPage, long lPages);

Overview

Refer to Loading a Bitmap from a File.

Remarks

Loads one or more images from a file into the ILEADRaster object. The file can be in any supported image file format and bits per pixel, whether compressed or uncompressed.

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.

For supported formats, refer to Summary of All Supported Image File Formats.

To load an image from a specific location within a file, use the following method:

LoadOffset method

Support for 12 and 16-bit grayscale images are available only in the Document/Medical toolkits.

For a list of available products, refer to Summary of LEADTOOLS Products.

See Also

Elements

FastLoad property, CMYKRasterCount property, LoadFileCMYKArray method, SaveFileCMYKArray method, RasterIO property, EnablePaintCMYKArray property, CMYKRaster property, LoadStatus property, LoadStamp method, BitmapDataPath method, LoadMemory method, StartFeedLoad method, LoadInfo event, EnableProgressEvent property, SetLoadResolution method, PCDResolution property, WMFResolution property, LoadOffset method

Topics

Raster Images: Loading Files

 

Raster Images: Creating and Maintaining Lists of Images

 

Handling CMYK Files as Separate Bitmaps