/// <summary>Disposeが呼ばれたら破棄します。</summary> /// <param name="disposing">破棄フラグ</param> protected override void Dispose(bool disposing) { if (!base.disposed) { if (disposing) { // デリゲートを破棄します。 getPictureInfo = null; getPicture = null; } base.Dispose(disposing); } }
/// <summary>*.spiファイルを読み込みます。</summary> /// <param name="fileName">読み込む*.spi</param> public SpiPicture(string fileName) : base(fileName) { getPictureInfo = (SpiGetPictureInfo)Win32.GetProcAddress(typeof(SpiGetPictureInfo), handle, "GetPictureInfo"); getPicture = (SpiGetPicture)Win32.GetProcAddress(typeof(SpiGetPicture), handle, "GetPicture"); }