Writes an image to the specified filename.
(filename string)
| 3091 | |
| 3092 | // Writes an image to the specified filename. |
| 3093 | func (mw *MagickWand) WriteImage(filename string) error { |
| 3094 | csfilename := C.CString(filename) |
| 3095 | defer C.free(unsafe.Pointer(csfilename)) |
| 3096 | C.MagickWriteImage(mw.mw, csfilename) |
| 3097 | return mw.GetLastError() |
| 3098 | } |
| 3099 | |
| 3100 | // Writes an image to an open file descriptor. |
| 3101 | func (mw *MagickWand) WriteImageFile(out *os.File) error { |
no test coverage detected