public RuntimeImageProcessor ( BookRenamedEvent bookRenamedEvent ) : System | ||
bookRenamedEvent | BookRenamedEvent | |
Résultat | System |
public RuntimeImageProcessor(BookRenamedEvent bookRenamedEvent)
{
_bookRenamedEvent = bookRenamedEvent;
_originalPathToProcessedVersionPath = new ConcurrentDictionary<string, string>();
_imageFilesToReturnUnprocessed = new ConcurrentDictionary<string, bool>();
_cacheFolder = Path.Combine(Path.GetTempPath(), "Bloom");
_bookRenamedEvent.Subscribe(OnBookRenamed);
_convertWhiteToTransparent = new ImageAttributes();
_convertWhiteToTransparent.SetColorKey(Color.FromArgb(253, 253, 253), Color.White);
}