-
Notifications
You must be signed in to change notification settings - Fork 181
Add ForegroundRemover sample #495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
42b4589
Change to 2.0 Exp2
brunosonnino f3e691c
WIP
brunosonnino c4d00d8
WIP
brunosonnino e4c1ab3
Save and Copy Image
brunosonnino 78be954
Merge branch 'main' into bsonnino/add-foreground-remover
brunosonnino 0b6e10b
Fix Using error
brunosonnino 00d09a3
Merge branch 'bsonnino/add-foreground-remover' of https://github.com/…
brunosonnino d95cf43
Implement copilot suggestions
brunosonnino 1ba28c0
Change button position
brunosonnino b526202
Merge branch 'main' into bsonnino/add-foreground-remover
weiyuanyue 6d21a89
Merge branch 'main' into bsonnino/add-foreground-remover
weiyuanyue a4f0a0b
Merge branch 'main' into bsonnino/add-foreground-remover
brunosonnino File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,73 @@ | ||
| <?xml version="1.0" encoding="utf-8" ?> | ||
| <samples:BaseSamplePage | ||
| x:Class="AIDevGallery.Samples.WCRAPIs.ForegroundExtractor" | ||
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
| xmlns:samples="using:AIDevGallery.Samples" | ||
| mc:Ignorable="d"> | ||
| <Grid ColumnSpacing="12" HorizontalAlignment="Stretch" VerticalAlignment="Top"> | ||
| <Grid.ColumnDefinitions> | ||
| <ColumnDefinition Width="*" /> | ||
| <ColumnDefinition Width="*" /> | ||
| </Grid.ColumnDefinitions> | ||
| <Image x:Name="InputImage" | ||
| Grid.Column="0" | ||
| Stretch="Uniform" | ||
| MaxHeight="400" | ||
| HorizontalAlignment="Left" | ||
| VerticalAlignment="Top"/> | ||
| <StackPanel Grid.Column="0" Margin="8" HorizontalAlignment="Right" | ||
| VerticalAlignment="Top" | ||
| Background="{ThemeResource AcrylicBackgroundFillColorDefaultBrush}" | ||
| CornerRadius="{StaticResource ControlCornerRadius}"> | ||
| <DropDownButton Padding="8" | ||
| HorizontalAlignment="Right" | ||
| VerticalAlignment="Top" | ||
| AutomationProperties.Name="Select image" | ||
| ToolTipService.ToolTip="Select image"> | ||
| <DropDownButton.Flyout> | ||
| <MenuFlyout Placement="Bottom"> | ||
| <MenuFlyoutItem Click="LoadImage_Click" Text="From file" /> | ||
| <MenuFlyoutItem Click="PasteImage_Click" Text="From clipboard" /> | ||
| </MenuFlyout> | ||
| </DropDownButton.Flyout> | ||
| <FontIcon FontSize="16" Glyph="" /> | ||
| </DropDownButton> | ||
| </StackPanel> | ||
| <Image x:Name="GeneratedImage" | ||
| Grid.Column="1" | ||
| AutomationProperties.LiveSetting="Assertive" | ||
| AutomationProperties.Name="Output" | ||
| HorizontalAlignment="Left" | ||
| VerticalAlignment="Top" | ||
| Stretch="Uniform" | ||
| MaxHeight="400"/> | ||
| <StackPanel | ||
| Margin="12" | ||
| Padding="8" | ||
| Grid.Column="1" | ||
| HorizontalAlignment="Right" | ||
| VerticalAlignment="Bottom" | ||
| Background="{ThemeResource AcrylicBackgroundFillColorDefaultBrush}" | ||
| CornerRadius="{StaticResource ControlCornerRadius}" | ||
| Orientation="Horizontal" | ||
| Spacing="8"> | ||
| <Button x:Name="CopyButton" | ||
| AutomationProperties.Name="Copy Image to the Clipboard" | ||
| Click="Copy_Click" | ||
| ToolTipService.ToolTip="Copy Image to the Clipboard" | ||
| Visibility="Visible"> | ||
| <FontIcon FontSize="16" Glyph="" /> | ||
| </Button> | ||
| <Button | ||
| x:Name="SaveButton" | ||
| Click="Save_Click" | ||
| ToolTipService.ToolTip="Save Image" | ||
| Visibility="Visible"> | ||
| <FontIcon FontSize="16" Glyph="" /> | ||
| </Button> | ||
| </StackPanel> | ||
| </Grid> | ||
| </samples:BaseSamplePage> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.