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

    This function will be called during file operations when a change of file size is required.

    Declaration:

     
    Copy Code
    typedef LONG (LPACCUAPI LPFNIG_SIZE_CHANGE)(
            AT_INT fd, 
            AT_INT lSize 
    );
    

    Arguments:

    Name Type Description
    fd AT_INT Descriptor ID, from open.
    lSize AT_INT New size of file, in bytes.

    Return Value:

    Returns the new size of the file, or -1 to indicate that an error occurred.

    Supported Raster Image Formats:

    This function does not process image pixels.

    Remarks:

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