Hi.
I have a diagram node that contain an image and a shape (rectangle).
I perform matrix rotation and scaling to the shape and get (as expected) a parrallogram.
I would like image to follow the rectangle - i.e get rotated and scaled into a parrallogram covering the shape.
Is it possible at all? (I know a simple rotation is possible).
If so, how?
Please note I am using Code only, no XAML during the logic.
The attached solution describe the issue.
The rectangle (click on the image to hide it) is rotated and streched on the X axis to for a parrallelogra,
The image is not.
The logic happens in MainWindow.xaml.cs (the XAML is for showing the diagram).
Again - I would like the image to fit directly over the red parrallelogram behind it.
Thanks is advance,
Dotan
Attachment:
ImageRotateTranslate_8e99f1c.zip