mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:56:31 +00:00
fix editing tiled images
This commit is contained in:
@@ -138,8 +138,9 @@
|
||||
Header="Редактор"
|
||||
Visibility="Collapsed">
|
||||
<controls:CanvasEditor x:Name="ExplorerEditor"
|
||||
VerticalAlignment="Stretch"
|
||||
HorizontalAlignment="Stretch" >
|
||||
Background="#01000000"
|
||||
VerticalAlignment="Stretch"
|
||||
HorizontalAlignment="Stretch" >
|
||||
</controls:CanvasEditor>
|
||||
</TabItem>
|
||||
<TabItem Name="ClassDistributionTab" Header="Розподіл класів">
|
||||
|
||||
@@ -195,10 +195,7 @@ public partial class DatasetExplorer
|
||||
ThumbnailsView.SelectedIndex = index;
|
||||
|
||||
var ann = CurrentAnnotation.Annotation;
|
||||
ExplorerEditor.Background = new ImageBrush
|
||||
{
|
||||
ImageSource = await ann.ImagePath.OpenImage()
|
||||
};
|
||||
ExplorerEditor.SetBackground(await ann.ImagePath.OpenImage());
|
||||
SwitchTab(toEditor: true);
|
||||
|
||||
ExplorerEditor.RemoveAllAnns();
|
||||
|
||||
Reference in New Issue
Block a user