mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2026-06-05 09:44:58 -06:00
AniMax release image files after opening
This keeps image files from being locked to the AniMax process while an image is open in AniMax
This commit is contained in:
parent
c8fba37725
commit
ae45c7539f
@ -139,10 +139,12 @@ namespace SpiffCode
|
|||||||
strFile);
|
strFile);
|
||||||
}
|
}
|
||||||
m_strFileName = strFile;
|
m_strFileName = strFile;
|
||||||
m_bm = new Bitmap(strFile);
|
using (var bmTemp = new Bitmap(strFile))
|
||||||
|
m_bm = new Bitmap(bmTemp);
|
||||||
string strPath = Path.GetDirectoryName(strFile);
|
string strPath = Path.GetDirectoryName(strFile);
|
||||||
string strFileName = Path.GetFileName(strFile);
|
string strFileName = Path.GetFileName(strFile);
|
||||||
m_bmBlack = new Bitmap(Path.Combine(strPath, "black_" + strFileName));
|
using (var bmpTemp = new Bitmap(Path.Combine(strPath, "black_" + strFileName)))
|
||||||
|
m_bmBlack = new Bitmap(bmTemp);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Load8(string strFileName, bool fUseFirstPaletteEntryAsTransparentColor) {
|
private void Load8(string strFileName, bool fUseFirstPaletteEntryAsTransparentColor) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user