public bool Save(string filename, FreeImageFormat type) { if (File.Exists(filename)) { File.Delete(filename); } FreeImageApi.SetPluginEnabled(type, true); return(FreeImageApi.Save(type, m_Handle, filename, 0)); }
public bool Save(string filename) { if (File.Exists(filename)) { File.Delete(filename); } FreeImageFormat fif = FreeImageApi.GetFIFFromFilename(filename); FreeImageApi.SetPluginEnabled(fif, true); return(FreeImageApi.Save(fif, m_Handle, filename, 0)); }