C# 클래스 PhotoSharingApp.Universal.Editing.BitmapTools

Offers some tools for editing bitmaps.
파일 보기 프로젝트 열기: Microsoft/Appsample-Photosharing

공개 메소드들

메소드 설명
GetCroppedBitmapAsync ( IRandomAccessStream originalImage, Point startPoint, Size cropSize, double scale ) : Task

Gets the cropped bitmap asynchronously.

Resize ( IRandomAccessStream sourceStream, uint newWidth, uint newHeight ) : Task

Resizes the specified stream.

Rotate ( IRandomAccessStream randomAccessStream, BitmapRotation rotation ) : Task

Rotates the given stream.

비공개 메소드들

메소드 설명
GetPixelData ( BitmapDecoder decoder, uint startPointX, uint startPointY, uint width, uint height, uint scaledWidth, uint scaledHeight ) : Task

Gets the pixel data.

If you want to get the pixel data of a scaled image, set the scaledWidth and scaledHeight of the scaled image.

메소드 상세

GetCroppedBitmapAsync() 공개 정적인 메소드

Gets the cropped bitmap asynchronously.
public static GetCroppedBitmapAsync ( IRandomAccessStream originalImage, Point startPoint, Size cropSize, double scale ) : Task
originalImage IRandomAccessStream The original image.
startPoint Point The start point.
cropSize Windows.Foundation.Size Size of the corp.
scale double The scale.
리턴 Task

Resize() 공개 정적인 메소드

Resizes the specified stream.
public static Resize ( IRandomAccessStream sourceStream, uint newWidth, uint newHeight ) : Task
sourceStream IRandomAccessStream The source stream to resize.
newWidth uint The width of the resized image.
newHeight uint The height of the resized image.
리턴 Task

Rotate() 공개 정적인 메소드

Rotates the given stream.
public static Rotate ( IRandomAccessStream randomAccessStream, BitmapRotation rotation ) : Task
randomAccessStream IRandomAccessStream The random access stream.
rotation BitmapRotation The rotation.
리턴 Task