-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance DrawingView and DrawingViewService to provide the ability to …
…export the full image size (#2193) * Initial attempt at exposing the ability to export the full image size * Opt for overload methods rather than parameter defaults to avoid breaking changes * Android sizing change * Windows implementation * Tizen support * Attempt to fix the unknowns * More fixes * One more time * Enable selection of the output option in the sample * Move options enum out to a separate file * Tidy up merge * Refactored to make use of some options classes * Attempt to fix unit tests --------- Co-authored-by: Shaun Lawrence <[email protected]> Co-authored-by: Vladislav Antonyuk <[email protected]> Co-authored-by: James Crutchley <[email protected]>
- Loading branch information
1 parent
62f4e2d
commit 4c2ce41
Showing
17 changed files
with
337 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/CommunityToolkit.Maui.Core/Primitives/DrawingViewOutputOption.shared.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace CommunityToolkit.Maui.Core; | ||
|
||
/// <summary> | ||
/// Enumeration of the options available when generating an image stream using the DrawingView. | ||
/// </summary> | ||
public enum DrawingViewOutputOption | ||
{ | ||
/// <summary> | ||
/// Outputs the area covered by the top-left to the bottom-right most points. | ||
/// </summary> | ||
Lines, | ||
|
||
/// <summary> | ||
/// Outputs the full area displayed within the drawing view. | ||
/// </summary> | ||
FullCanvas | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.