Attempts to save an image to a file stream. The file format is specified by the user. ! \param Type Format of this file. Acceptable values are IL_BMP, IL_CHEAD, IL_DDS, IL_EXR, IL_HDR, IL_JP2, IL_JPG, IL_PCX, IL_PNG, IL_PNM, IL_PSD, IL_RAW, IL_SGI, IL_TGA, IL_TIF, IL_VTF, IL_WBMP and IL_JASC_PAL. \param File File stream to save to. \return Boolean value of failure or success. Returns IL_FAL
| 2303 | \param File File stream to save to. |
| 2304 | \return Boolean value of failure or success. Returns IL_FALSE if saving failed.*/ |
| 2305 | ILuint ILAPIENTRY ilSaveF(ILenum Type, ILHANDLE File) |
| 2306 | { |
| 2307 | ILboolean Ret; |
| 2308 | |
| 2309 | if (File == NULL) { |
| 2310 | ilSetError(IL_INVALID_PARAM); |
| 2311 | return 0; |
| 2312 | } |
| 2313 | |
| 2314 | switch (Type) |
| 2315 | { |
| 2316 | #ifndef IL_NO_BMP |
| 2317 | case IL_BMP: |
| 2318 | Ret = ilSaveBmpF(File); |
| 2319 | break; |
| 2320 | #endif |
| 2321 | |
| 2322 | #ifndef IL_NO_DDS |
| 2323 | case IL_DDS: |
| 2324 | Ret = ilSaveDdsF(File); |
| 2325 | break; |
| 2326 | #endif |
| 2327 | |
| 2328 | #ifndef IL_NO_EXR |
| 2329 | case IL_EXR: |
| 2330 | Ret = ilSaveExrF(File); |
| 2331 | break; |
| 2332 | #endif |
| 2333 | |
| 2334 | #ifndef IL_NO_HDR |
| 2335 | case IL_HDR: |
| 2336 | Ret = ilSaveHdrF(File); |
| 2337 | break; |
| 2338 | #endif |
| 2339 | |
| 2340 | #ifndef IL_NO_JP2 |
| 2341 | case IL_JP2: |
| 2342 | Ret = ilSaveJp2F(File); |
| 2343 | break; |
| 2344 | #endif |
| 2345 | |
| 2346 | #ifndef IL_NO_JPG |
| 2347 | #ifndef IL_USE_IJL |
| 2348 | case IL_JPG: |
| 2349 | Ret = ilSaveJpegF(File); |
| 2350 | break; |
| 2351 | #endif |
| 2352 | #endif |
| 2353 | |
| 2354 | #ifndef IL_NO_PNM |
| 2355 | case IL_PNM: |
| 2356 | Ret = ilSavePnmF(File); |
| 2357 | break; |
| 2358 | #endif |
| 2359 | |
| 2360 | #ifndef IL_NO_PNG |
| 2361 | case IL_PNG: |
| 2362 | Ret = ilSavePngF(File); |
nothing calls this directly
no test coverage detected