C# Class Com.Aurora.Shared.Helpers.ImagingHelper

Exibir arquivo Open project: aurora-lzzp/Aurora-Weather

Public Methods

Method Description
CropandScaleAsync ( StorageFile source, StorageFile dest, Point startPoint, Size size, double m_scaleFactor ) : System.Threading.Tasks.Task
GetMainColor ( Uri urisource ) : Task
GetPictureAsync ( StorageFile ImageFile ) : Task
New ( Stream stream ) : Task
ResizedImage ( StorageFile ImageFile, float ratio ) : Task
SaveBitmapToFileAsync ( WriteableBitmap image, string userId ) : System.Threading.Tasks.Task
SetWallpaperAsync ( StorageFile localAppDataFileName ) : Task

Private Methods

Method Description
GetPixels ( WriteableBitmap bitmap, Color pixels, Int32 width, Int32 height ) : Task
fromBitmap ( WriteableBitmap bitmap ) : Task
scaleBitmapDown ( WriteableBitmap bitmap ) : WriteableBitmap

Method Details

CropandScaleAsync() public static method

public static CropandScaleAsync ( StorageFile source, StorageFile dest, Point startPoint, Size size, double m_scaleFactor ) : System.Threading.Tasks.Task
source Windows.Storage.StorageFile
dest Windows.Storage.StorageFile
startPoint Point
size Windows.Foundation.Size
m_scaleFactor double
return System.Threading.Tasks.Task

GetMainColor() public static method

public static GetMainColor ( Uri urisource ) : Task
urisource Uri
return Task

GetPictureAsync() public static method

public static GetPictureAsync ( StorageFile ImageFile ) : Task
ImageFile Windows.Storage.StorageFile
return Task

New() public static method

public static New ( Stream stream ) : Task
stream Stream
return Task

ResizedImage() public static method

public static ResizedImage ( StorageFile ImageFile, float ratio ) : Task
ImageFile Windows.Storage.StorageFile
ratio float
return Task

SaveBitmapToFileAsync() public static method

public static SaveBitmapToFileAsync ( WriteableBitmap image, string userId ) : System.Threading.Tasks.Task
image Windows.UI.Xaml.Media.Imaging.WriteableBitmap
userId string
return System.Threading.Tasks.Task

SetWallpaperAsync() public static method

public static SetWallpaperAsync ( StorageFile localAppDataFileName ) : Task
localAppDataFileName Windows.Storage.StorageFile
return Task