C# Class BaconographyW8.PlatformServices.ImagesService

Inheritance: IImagesService
Afficher le fichier Open project: Synergex/Baconography

Méthodes publiques

Méthode Description
GenerateResizedImage ( object inputFile, uint width, uint height, uint edgePadding = 5, uint bottomPadding = 20, bool replaceIfExists = true ) : Task
GetImagesFromUrl ( string title, string url ) : string>>>.Task
ImageBytesFromUrl ( string url ) : Task
ImageBytesFromUrl ( string url, bool isRetry ) : Task
IsImage ( string url ) : bool
IsImageAPI ( string url ) : bool
MightHaveImagesFromUrl ( string url ) : bool
SaveFileFromUriAsync ( Uri fileUri, string localFileName, string localPath = "Images", bool replaceIfExists = true ) : Task

Private Methods

Méthode Description
GenerateResizedImageAsync ( StorageFile inputFile, uint width, uint height, uint edgePadding = 5, uint bottomPadding = 20, NameCollisionOption collisionOption = NameCollisionOption.ReplaceExisting ) : Task
GenerateTransparentBitmap ( uint width, uint height ) : byte[]
MergePixelArrays ( byte largeArray, uint lWidth, uint lHeight, byte smallArray, uint sWidth, uint sHeight, uint widthOffset, uint heightOffset ) : byte[]
SaveFileFromUriAsync ( Uri fileUri, string localFileName, string localPath = "Images", NameCollisionOption collisionOption = NameCollisionOption.ReplaceExisting ) : Task

Method Details

GenerateResizedImage() public méthode

public GenerateResizedImage ( object inputFile, uint width, uint height, uint edgePadding = 5, uint bottomPadding = 20, bool replaceIfExists = true ) : Task
inputFile object
width uint
height uint
edgePadding uint
bottomPadding uint
replaceIfExists bool
Résultat Task

GetImagesFromUrl() public méthode

public GetImagesFromUrl ( string title, string url ) : string>>>.Task
title string
url string
Résultat string>>>.Task

ImageBytesFromUrl() public méthode

public ImageBytesFromUrl ( string url ) : Task
url string
Résultat Task

ImageBytesFromUrl() public méthode

public ImageBytesFromUrl ( string url, bool isRetry ) : Task
url string
isRetry bool
Résultat Task

IsImage() public méthode

public IsImage ( string url ) : bool
url string
Résultat bool

IsImageAPI() public méthode

public IsImageAPI ( string url ) : bool
url string
Résultat bool

MightHaveImagesFromUrl() public méthode

public MightHaveImagesFromUrl ( string url ) : bool
url string
Résultat bool

SaveFileFromUriAsync() public méthode

public SaveFileFromUriAsync ( Uri fileUri, string localFileName, string localPath = "Images", bool replaceIfExists = true ) : Task
fileUri System.Uri
localFileName string
localPath string
replaceIfExists bool
Résultat Task