| RMC_SaveBMP function. | ||
| Saves a PowerBASIC 8.xx bitmap as *.jpg or *.png-file | ||
| Syntax | ||
| nResult (LONG) = RMC_SaveBMP( ByVal hBmp (LONG), ByRef sFileName (ASCIIZ) ) |
||
| Parameter | ||
| hBmp (LONG) | ||
| Handle of the bitmap, which you get with GRAPHIC BITMAP NEW when you create a new GRAPHIC BITMAP in PowerBASIC. | ||
| sFileName (ASCIIZ) | ||
| Name of the file, in which the bitmap shall be saved. The file extension can be either JPG ("myfile.jpg") or PNG ("myfile.png"). | ||
| Return value | ||
| 0 | ||
| No error, function succeeded. | ||
| RMC_ERROR_INIGDIP | ||
| Error while initializing GDIPLUS.DLL. | ||