LoadInfo event (ILEADRasterIO)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

void LoadInfo ();

Overview

Refer to Loading a Bitmap from a File.

Remarks

Occurs if LEADTOOLS attempts to load an image file, but does not find valid format information in the file header. You can use this event for loading input data (such as raw fax) that LEADTOOLS cannot recognize.

LEADTOOLS will only attempt to recognize fax files if you respond to this event and have filled the LoadInfoXXX properties listed below. If you want LEADTOOLS to automatically recognize any fax file, set the LoadInfoWidth and LoadInfoHeight properties to -1 once, at the beginning of the program. If you recognize the file and know the width and height of the file, set LoadInfoWidth and LoadInfoHeight to a positive value.

This event occurs before an error message is generated. You can set the following properties in this event to supply the missing header information:

image\sqrblit.gif LoadInfoBits property

image\sqrblit.gif LoadInfoFlags property

image\sqrblit.gif LoadInfoFormat property

image\sqrblit.gif LoadInfoHeight property

image\sqrblit.gif LoadInfoOffset property

image\sqrblit.gif LoadInfoWidth property

image\sqrblit.gif LoadInfoXRes property

image\sqrblit.gif LoadInfoYRes property

image\sqrblit.gif IOPalette property

You can also set these properties elsewhere in your program. For example, you could set them at the time you identify the file that is to be loaded. But LEADTOOLS does not check the property values until after it has failed to find the header information and the LoadInfo event has occurred.

See Also

Elements

EnableLoadInfoEvent property, ColorSpace property, LoadOffset method

Topics

Raster Images: Loading Files, Working with the RAW File Filter