| RMC_GetImageSizeFromFile function. | ||
| Get width and height of an image from an image file | ||
| Syntax | ||
| nResult (LONG) = RMC_GetImageSizeFromFile( ByRef sImagePath (ASCIIZ), ByRef nWidth (LONG), ByRef nHeight (LONG) ) |
||
| Parameter | ||
| sImagePath (ASCIIZ) | ||
| Full name of an image file. | ||
| nWidth | ||
| If no error: width of the image in pixel. | ||
| nHeight | ||
| If no error: height of the image in pixel. | ||
| Return value | ||
| 0 | ||
| No error, function succeeded. | ||
| RMC_ERROR_FILEFOUND | ||
| Error while reading the file. This does not necessarily mean, that the file was not found, the reason for the error may also be found in the depth of gdiplus.dll... . | ||
| Remarks | ||
| After the successful call to this function nWidth and nHeight hold the dimensions of the image in sImagePath. Call this function e.g. if you need to know this dimensions before you add an image with RMC_COImage(). | ||