C# Class PhotoSharingApp.Universal.Editing.BitmapTools

Offers some tools for editing bitmaps.
Afficher le fichier Open project: Microsoft/Appsample-Photosharing

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

GetCroppedBitmapAsync() public static méthode

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.
Résultat Task

Resize() public static méthode

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.
Résultat Task

Rotate() public static méthode

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