Bloom.CollectionTab.LibraryListView.MakeDim(System.Drawing.Image)

Here are the examples of the csharp api class Bloom.CollectionTab.LibraryListView.MakeDim(System.Drawing.Image) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: BloomDesktop
Source File: LibraryListView.cs
private void RefreshOneThumbnail(Book.BookInfo bookInfo, Image image)
		{
			if (IsDisposed)
				return;
			try
			{
				var imageIndex = _bookThumbnails.Images.IndexOfKey(bookInfo.Id);
				if (imageIndex > -1)
				{
					_bookThumbnails.Images[imageIndex] = image;
					var button = FindBookButton(bookInfo);
					button.Image = IsUsableBook(button) ? image : MakeDim(image);
				}
			}

			catch (Exception e)
			{
				Logger.WriteEvent("Error refreshing thumbnail. "+e.Message);
#if DEBUG
				throw;
#endif
			}
		}