C# 클래스 Edi.UWP.Helpers.Extensions.BitmapExtensions

파일 보기 프로젝트 열기: EdiWang/UWP-Helpers

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
WriteToStorageFile ( WriteableBitmap bitmap, StorageFile file ) : Task

메소드 상세

LoadWriteableBitmap() 공개 정적인 메소드

Return WriteableBitmap object from a given path
public static LoadWriteableBitmap ( string relativePath ) : Task
relativePath string file path
리턴 Task

SaveStorageFile() 공개 정적인 메소드

Save a bitmap to a StorageFile object
public static SaveStorageFile ( this bitmap, StorageFile file ) : Task
bitmap this bitmap
file Windows.Storage.StorageFile StorageFile object
리턴 Task

SaveToPngImage() 공개 정적인 메소드

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
리턴 Task

ToByteArray() 공개 정적인 메소드

Return byte array of a bitmap object
public static ToByteArray ( this bitmap ) : byte[]
bitmap this bitmap
리턴 byte[]

ToStream() 공개 정적인 메소드

Convert bitmap object to Stream
public static ToStream ( this bitmap ) : Stream
bitmap this bitmap
리턴 Stream