Property | Type | Description | |
---|---|---|---|
AddCornerEvents | void | ||
Corner_PointerMoved | void | ||
Corner_PointerPressed | void | ||
Corner_PointerReleased | void | ||
RemoveCornerEvents | void | ||
SelectRegion_ManipulationCompleted | void | ||
SelectRegion_ManipulationDelta | void | ||
UpdatePreviewImage | void | ||
selectedRegion_PropertyChanged | void | ||
sourceImage_SizeChanged | void |
Method | Description | |
---|---|---|
CropControl ( ) : System |
Initializes a new instance of the CropControl class.
|
|
Dispose ( ) : void |
Releases resources and unregisters from event handlers.
|
|
GetCroppedImage ( ) : Task |
Creates the non-scaled cropped image.
|
|
LoadImage ( IRandomAccessStream fileStream ) : System.Threading.Tasks.Task |
Loads the image.
|
Method | Description | |
---|---|---|
OnApplyTemplate ( ) : void |
Template to manage crop selection of image.
|
Method | Description | |
---|---|---|
AddCornerEvents ( |
Adds pointer events to the given control.
|
|
Corner_PointerMoved ( object sender, |
If a pointer which is captured by the corner moves,the select region will be updated.
|
|
Corner_PointerPressed ( object sender, |
If a pointer presses in the corner, it means that the user starts to move the corner. 1. Capture the pointer, so that the UIElement can get the Pointer events (PointerMoved, PointerReleased...) even the pointer is outside of the UIElement. 2. Record the start position of the move.
|
|
Corner_PointerReleased ( object sender, |
The pressed pointer is released, which means that the move is ended. 1. Release the Pointer. 2. Clear the position history of the Pointer.
|
|
RemoveCornerEvents ( |
Remove pointer events for the corner.
|
|
SelectRegion_ManipulationCompleted ( object sender, |
The manipulation is completed, and then update the preview image
|
|
SelectRegion_ManipulationDelta ( object sender, |
The user manipulates the selectRegion. The manipulation includes 1. Translate 2. Scale
|
|
UpdatePreviewImage ( ) : void |
Updates the preview image.
|
|
selectedRegion_PropertyChanged ( object sender, |
Show the select region information.
|
|
sourceImage_SizeChanged ( object sender, |
This event will be fired when 1. An new image is opened. 2. The source of the sourceImage is set to null. 3. The view state of this application is changed.
|
public LoadImage ( IRandomAccessStream fileStream ) : System.Threading.Tasks.Task | ||
fileStream | IRandomAccessStream | The file stream. |
return | System.Threading.Tasks.Task |