C# 클래스 XamlBrewer.Uwp.Controls.Helpers.CropBitmap

파일 보기 프로젝트 열기: XamlBrewer/UWP-ImageCropper-

공개 메소드들

메소드 설명
GetCroppedBitmapAsync ( StorageFile originalImageFile, Point startPoint, Size corpSize, double scale ) : Task

Get a cropped bitmap from a image file.

비공개 메소드들

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

Use BitmapTransform to define the region to crop, and then get the pixel data in the region

GetPixelData ( BitmapDecoder decoder, uint startPointX, uint startPointY, uint width, uint height, uint scaledWidth, uint scaledHeight ) : Task

Use BitmapTransform to define the region to crop, and then get the pixel data in the region. If you want to get the pixel data of a scaled image, set the scaledWidth and scaledHeight of the scaled image.

메소드 상세

GetCroppedBitmapAsync() 공개 정적인 메소드

Get a cropped bitmap from a image file.
public static GetCroppedBitmapAsync ( StorageFile originalImageFile, Point startPoint, Size corpSize, double scale ) : Task
originalImageFile Windows.Storage.StorageFile /// The original image file. ///
startPoint Point /// The start point of the region to be cropped. ///
corpSize Windows.Foundation.Size /// The size of the region to be cropped. ///
scale double
리턴 Task