C# Class Edi.UWP.Helpers.Extensions.BitmapExtensions

Afficher le fichier Open project: EdiWang/UWP-Helpers

Méthodes publiques

Méthode Description
LoadWriteableBitmap ( string relativePath ) : Task

Return WriteableBitmap object from a given path

SaveStorageFile ( this bitmap, StorageFile file ) : Task

Save a bitmap to a StorageFile object

SaveToPngImage ( this bitmap, PickerLocationId location, string fileName ) : Task

Save a bitmap to a PNG file

ToByteArray ( this bitmap ) : byte[]

Return byte array of a bitmap object

ToStream ( this bitmap ) : Stream

Convert bitmap object to Stream

Private Methods

Méthode Description
WriteToStorageFile ( WriteableBitmap bitmap, StorageFile file ) : Task

Method Details

LoadWriteableBitmap() public static méthode

Return WriteableBitmap object from a given path
public static LoadWriteableBitmap ( string relativePath ) : Task
relativePath string file path
Résultat Task

SaveStorageFile() public static méthode

Save a bitmap to a StorageFile object
public static SaveStorageFile ( this bitmap, StorageFile file ) : Task
bitmap this bitmap
file Windows.Storage.StorageFile StorageFile object
Résultat Task

SaveToPngImage() public static méthode

Save a bitmap to a PNG file
public static SaveToPngImage ( this bitmap, PickerLocationId location, string fileName ) : Task
bitmap this bitmap
location PickerLocationId path
fileName string file name
Résultat Task

ToByteArray() public static méthode

Return byte array of a bitmap object
public static ToByteArray ( this bitmap ) : byte[]
bitmap this bitmap
Résultat byte[]

ToStream() public static méthode

Convert bitmap object to Stream
public static ToStream ( this bitmap ) : Stream
bitmap this bitmap
Résultat Stream