C# 클래스 ImageLib.ImageLoader

파일 보기 프로젝트 열기: chenrensong/ImageLib.UWP

공개 메소드들

메소드 설명
ClearStorageCache ( ) : Task

清空缓存

Initialize ( ImageConfig imageConfig ) : ImageLoader
LoadImage ( Image image, Uri uriSource, CancellationTokenSource cancellationTokenSource ) : Task

Async loading image from cache or network

LoadImage ( Image image, string imageUrl, CancellationTokenSource cancellationTokenSource ) : Task

Async loading image from cache or network

LoadImageStream ( Uri imageUri, CancellationTokenSource cancellationTokenSource ) : Task

Async loading image stream from cache or network

Register ( string key, ImageConfig imageConfig ) : void

注册其他的Image Loader,便于不同策略使用

보호된 메소드들

메소드 설명
CheckConfig ( ) : void
ImageLoader ( ) : System
ImageLoader ( ImageConfig imageConfig ) : System
LoadImageStreamFromCache ( Uri imageUri ) : Task

Loads image stream from memory or storage cachecache

비공개 메소드들

메소드 설명
GetAvailableDecoders ( ) : ReadOnlyCollection
LoadImageStreamFromCacheInternal ( Uri imageUri ) : Task

메소드 상세

CheckConfig() 보호된 메소드

protected CheckConfig ( ) : void
리턴 void

ClearStorageCache() 공개 메소드

清空缓存
public ClearStorageCache ( ) : Task
리턴 Task

ImageLoader() 보호된 메소드

protected ImageLoader ( ) : System
리턴 System

ImageLoader() 보호된 메소드

protected ImageLoader ( ImageConfig imageConfig ) : System
imageConfig ImageConfig
리턴 System

Initialize() 공개 정적인 메소드

public static Initialize ( ImageConfig imageConfig ) : ImageLoader
imageConfig ImageConfig
리턴 ImageLoader

LoadImage() 공개 메소드

Async loading image from cache or network
public LoadImage ( Image image, Uri uriSource, CancellationTokenSource cancellationTokenSource ) : Task
image Image
uriSource System.Uri
cancellationTokenSource System.Threading.CancellationTokenSource
리턴 Task

LoadImage() 공개 메소드

Async loading image from cache or network
public LoadImage ( Image image, string imageUrl, CancellationTokenSource cancellationTokenSource ) : Task
image Image
imageUrl string Url of the image to load
cancellationTokenSource System.Threading.CancellationTokenSource
리턴 Task

LoadImageStream() 공개 메소드

Async loading image stream from cache or network
public LoadImageStream ( Uri imageUri, CancellationTokenSource cancellationTokenSource ) : Task
imageUri System.Uri Uri of the image to load
cancellationTokenSource System.Threading.CancellationTokenSource
리턴 Task

LoadImageStreamFromCache() 보호된 메소드

Loads image stream from memory or storage cachecache
protected LoadImageStreamFromCache ( Uri imageUri ) : Task
imageUri System.Uri
리턴 Task

Register() 공개 정적인 메소드

注册其他的Image Loader,便于不同策略使用
public static Register ( string key, ImageConfig imageConfig ) : void
key string
imageConfig ImageConfig
리턴 void