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

    This function will be called during file operations when a READ is required.

    Declaration:

     
    Copy Code
    typedef LONG (ACCUAPI LPFNIG_READ) ( 
            LONG fd, 
            LPBYTE lpBuffer, 
            LONG lSize 
    );
    

    Arguments:

    Name Type Description
    fd LONG File Descriptor handle.
    lpBuffer LPBYTE Far pointer to buffer into which to read data.
    lSize LONG Number of bytes to read.

    Return Value:

    Return the number of bytes read, or -1 to indicate that an error occurred.

    Supported Raster Image Formats:

    This function does not process image pixels.

    Sample:

    IOSET

    Example:

    See the example for function IG_file_IO_register().

    Remarks:

    This type of function is established by calling IG_file_IO_register() function.