Save the current image to FileName as raw data
| 96 | |
| 97 | //! Save the current image to FileName as raw data |
| 98 | ILboolean ILAPIENTRY ilSaveData(ILconst_string FileName) |
| 99 | { |
| 100 | ILHANDLE DataFile; |
| 101 | |
| 102 | if (iCurImage == NULL) { |
| 103 | ilSetError(IL_ILLEGAL_OPERATION); |
| 104 | return IL_FALSE; |
| 105 | } |
| 106 | |
| 107 | DataFile = iopenr(FileName); |
| 108 | if (DataFile == NULL) { |
| 109 | ilSetError(IL_COULD_NOT_OPEN_FILE); |
| 110 | return IL_FALSE; |
| 111 | } |
| 112 | |
| 113 | iwrite(iCurImage->Data, 1, iCurImage->SizeOfData); |
| 114 | icloser(DataFile); |
| 115 | |
| 116 | return IL_TRUE; |
| 117 | } |
| 118 | |
| 119 | |
| 120 | //#endif//IL_NO_DATA |
nothing calls this directly
no test coverage detected