ImageGear for C and C++ on Windows v21.0 - Updated
API Reference Guide / GUI Component API Reference / GUI Component Callback Functions Reference / FNIGGUI_FORMAT_DETECT
In This Topic
    FNIGGUI_FORMAT_DETECT
    In This Topic

    A callback function that implements a file format detection routine.

    Declaration:

     
    Copy Code
    AT_ERRCOUNT ACCUAPI FNIGGUI_FORMAT_DETECT(
        LPVOID lpPrivate, 
        LPAT_MODE lpnFormat
    );
    

    Arguments:

    Name Type Description
    lpPrivate LPVOID A file name.
    lpnFormat LPAT_MODE A pointer to a variable that will receive the Format ID.

    Return Value:

    Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.

    Supported Raster Image Formats:

    All pixel formats supported by ImageGear.

    Sample:

    GUI