C# Class FSpot.Thumbnail.ThumbnailService

Inheritance: IThumbnailService
显示文件 Open project: mono/f-spot Class Usage Examples

Public Methods

Method Description
DeleteThumbnails ( SafeUri fileUri ) : void
GetThumbnail ( SafeUri fileUri, ThumbnailSize size ) : Pixbuf
ThumbnailService ( IXdgDirectoryService xdgDirectoryService, IThumbnailerFactory thumbnailerFactory, IFileSystem fileSystem ) : System
TryLoadThumbnail ( SafeUri fileUri, ThumbnailSize size ) : Pixbuf

Private Methods

Method Description
GetThumbnailPath ( SafeUri fileUri, ThumbnailSize size ) : SafeUri
IsValid ( SafeUri uri, Pixbuf pixbuf ) : bool
LoadPng ( SafeUri uri ) : Pixbuf
LoadThumbnail ( SafeUri thumbnailUri ) : Pixbuf

Method Details

DeleteThumbnails() public method

public DeleteThumbnails ( SafeUri fileUri ) : void
fileUri Hyena.SafeUri
return void

GetThumbnail() public method

public GetThumbnail ( SafeUri fileUri, ThumbnailSize size ) : Pixbuf
fileUri SafeUri
size ThumbnailSize
return Pixbuf

ThumbnailService() public method

public ThumbnailService ( IXdgDirectoryService xdgDirectoryService, IThumbnailerFactory thumbnailerFactory, IFileSystem fileSystem ) : System
xdgDirectoryService IXdgDirectoryService
thumbnailerFactory IThumbnailerFactory
fileSystem IFileSystem
return System

TryLoadThumbnail() public method

public TryLoadThumbnail ( SafeUri fileUri, ThumbnailSize size ) : Pixbuf
fileUri SafeUri
size ThumbnailSize
return Pixbuf