Load method (Main Control)

Visual Basic example
Visual C++ 4.0 example


Access 2.0 example

Access 95, 97 example


Visual J++ example

Syntax short Load (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 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 LoadInfo 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.

See Also

Elements:  LoadStamp method, BitmapDataPath property, LoadMemory method, StartFeedLoad method, LoadInfo event, EnableProgressEvent property, SetLoadResolution method, PCDResolution property, LayerLeft property, LayerTop property

Topics:  Raster Images: Loading Files
Raster Images: Creating and Maintaining Lists of Images