Load method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int Load (System::AnsiString sFileName, int iBitsPerPixel, int iPage, int iPages);

Delphi Syntax

Load (sFileName: String; iBitsPerPixel, iPage, iPages: Integer): Integer;

Overview

Refer to Loading a Bitmap from a File.

Remarks

Loads one or more images from a file into the Main Control. 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 OnLoadInfo event must be sent when loading raw Fax files.

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

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

Support for writing AVI files is only available in the Multimedia toolkits.

See Also

Elements:

LoadStamp method, LoadMemory method, StartFeedLoad method, OnLoadInfo event, EnableProgressEvent property

Topics:

Raster Images: Loading Files

 

Raster Images: Creating and Maintaining Lists of Images