Displaying SVGs in WPF canvas so the SVG shapes can be rotated #188
Replies: 5 comments 3 replies
-
Without a sample, it is not easy to pinpoint the source of the issue. Try to find what is the source of extract/boundary being generated.
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid>
<Image>
<Image.Source>
<DrawingImage>
<DrawingImage.Drawing>
!!! Drawing here !!!
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
</Grid>
</Window> |
Beta Was this translation helpful? Give feedback.
-
@paulushub Currently, everything is just tossed into one WPF canvas. |
Beta Was this translation helpful? Give feedback.
-
Should I have used a different technique? |
Beta Was this translation helpful? Give feedback.
-
Well, I got around to looking at your suggestion. However, that tutorial doesn't rotate images. It also doesn't handle your library. |
Beta Was this translation helpful? Give feedback.
-
I'm working on a project where some ships (represented by SVG shapes) need to be displayed on a SVG map. The ships need to be moved around the map and rotated to match a script my code follows. However, converting the ships to XAML seems to be causing problems when I rotate them. That seems to add a big margin around each shape being rotated throwing off my calculations as to where to render them.
Can you suggest a solution?
Beta Was this translation helpful? Give feedback.
All reactions