C# Class DoodlePad.IsolatedStorageHelper

Afficher le fichier Open project: disbitski/DoodlePad

Méthodes publiques

Méthode Description
GetImage ( byte buffer ) : System.Windows.Media.Imaging.WriteableBitmap

Gets an image from storage

GetSaveBuffer ( System.Windows.Media.Imaging.WriteableBitmap bitmap ) : byte[]

Gets the buffer to save to disk from the writeable bitmap

ImgFromBase64 ( byte byteArray ) : BitmapImage
LoadIfExists ( string fileName ) : byte[]
SaveToDisk ( byte buffer, string fileName ) : void

Saves to isolated storage

Method Details

GetImage() public static méthode

Gets an image from storage
public static GetImage ( byte buffer ) : System.Windows.Media.Imaging.WriteableBitmap
buffer byte
Résultat System.Windows.Media.Imaging.WriteableBitmap

GetSaveBuffer() public static méthode

Gets the buffer to save to disk from the writeable bitmap
public static GetSaveBuffer ( System.Windows.Media.Imaging.WriteableBitmap bitmap ) : byte[]
bitmap System.Windows.Media.Imaging.WriteableBitmap The bitmap image
Résultat byte[]

ImgFromBase64() public static méthode

public static ImgFromBase64 ( byte byteArray ) : BitmapImage
byteArray byte
Résultat System.Windows.Media.Imaging.BitmapImage

LoadIfExists() public static méthode

public static LoadIfExists ( string fileName ) : byte[]
fileName string
Résultat byte[]

SaveToDisk() public static méthode

Saves to isolated storage
public static SaveToDisk ( byte buffer, string fileName ) : void
buffer byte The buffer
fileName string
Résultat void