Skip to content

Commit 38cbad5

Browse files
committed
Feature: Export to Image, allows users to save a rectangular selection of code directly to a PNG file.
1 parent 632db4b commit 38cbad5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/CodeSnip/MainWindow.xaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,12 @@
476476
Width="16" Height="16" Stretch="Uniform" />
477477
</MenuItem.Icon>
478478
</MenuItem>
479+
<MenuItem Header="Image" Click="ExportToPng_Click">
480+
<MenuItem.Icon>
481+
<Path Data="{StaticResource ImageSave}" Fill="{DynamicResource MahApps.Brushes.AccentBase}"
482+
Width="16" Height="16" Stretch="Uniform" />
483+
</MenuItem.Icon>
484+
</MenuItem>
479485
</MenuItem>
480486
<Separator />
481487
<MenuItem Header="Format with">

0 commit comments

Comments
 (0)