public Bitmap Get(string image) { if (string.IsNullOrEmpty(image)) { return(decorated.Get(image)); } var bitmap = cache.Get(image) as Bitmap; if (bitmap != null) { return(bitmap); } bitmap = decorated.Get(image); if (bitmap != null) { cache.Put(image, bitmap); } return(bitmap); }
public Bitmap GetBitmap(string image) { return(bitmapRepository.Get(image)); }