private IProducer <EncodedImage> NewLocalThumbnailProducer( IThumbnailProducer <EncodedImage>[] thumbnailProducers) { ThumbnailBranchProducer thumbnailBranchProducer = _producerFactory.NewThumbnailBranchProducer(thumbnailProducers); if (_downsampleEnabled) { return(thumbnailBranchProducer); } else { return(_producerFactory.NewResizeAndRotateProducer(thumbnailBranchProducer)); } }