C# Class BaconographyW8.PlatformServices.ImagesService

Inheritance: IImagesService
Mostrar archivo Open project: Synergex/Baconography

Public Methods

Method 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

Method 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 method

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
return Task

GetImagesFromUrl() public method

public GetImagesFromUrl ( string title, string url ) : string>>>.Task
title string
url string
return string>>>.Task

ImageBytesFromUrl() public method

public ImageBytesFromUrl ( string url ) : Task
url string
return Task

ImageBytesFromUrl() public method

public ImageBytesFromUrl ( string url, bool isRetry ) : Task
url string
isRetry bool
return Task

IsImage() public method

public IsImage ( string url ) : bool
url string
return bool

IsImageAPI() public method

public IsImageAPI ( string url ) : bool
url string
return bool

MightHaveImagesFromUrl() public method

public MightHaveImagesFromUrl ( string url ) : bool
url string
return bool

SaveFileFromUriAsync() public method

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