ImageGear for C and C++ on Windows v20.0 - Updated
IG_tile_count_get_W
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Info Functions > IG_tile_count_get_W

This function gets the number of tiles constituting a page for file formats that support tiled pages.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_tile_count_get_W(
     const LPAT_WCHAR lpwszFileName,
     UINT nPageNum,
     LPUINT lpTileCountH,
     LPUINT lpTileCountV
);

Arguments:

Name Type Description
lpwszFileName const LPAT_WCHAR Unicode path and name of the file for which to get the tile count. The path can be absolute or relative.
nPageNum UINT Page number for which to get the count of tiles.
lpTileCountH LPUINT Pointer to a UINT variable to receive the number of tiles horizontally (number of tiles in a row).
lpTileCountV LPUINT Pointer to a UINT variable to receive the number of tiles vertically (number of tiles in a column).

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 for C and C++.

Sample:

None

Remarks:

The function returns 0 for both lpTileCountH and lpTileCountV if the image file format does not support tiled images.

See IG_tile_count_get for an ASCII version of this function.

Is this page helpful?
Yes No
Thanks for your feedback.