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

Afficher le fichier Open project: aurora-lzzp/Aurora-Weather

Méthodes publiques

Méthode 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

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

Method Details

CropandScaleAsync() public static méthode

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
Résultat System.Threading.Tasks.Task

GetMainColor() public static méthode

public static GetMainColor ( Uri urisource ) : Task
urisource Uri
Résultat Task

GetPictureAsync() public static méthode

public static GetPictureAsync ( StorageFile ImageFile ) : Task
ImageFile Windows.Storage.StorageFile
Résultat Task

New() public static méthode

public static New ( Stream stream ) : Task
stream Stream
Résultat Task

ResizedImage() public static méthode

public static ResizedImage ( StorageFile ImageFile, float ratio ) : Task
ImageFile Windows.Storage.StorageFile
ratio float
Résultat Task

SaveBitmapToFileAsync() public static méthode

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

SetWallpaperAsync() public static méthode

public static SetWallpaperAsync ( StorageFile localAppDataFileName ) : Task
localAppDataFileName Windows.Storage.StorageFile
Résultat Task