Print Page | Close Window

XAML transformation matrix

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=24247
Printed Date: 22 December 2024 at 12:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XAML transformation matrix
Posted By: salvoBarbera
Subject: XAML transformation matrix
Date Posted: 09 December 2021 at 3:33am
Hi
creating xaml in version 20 now works, but transfomation matrix not, codejock crash, but in all tools when you rotate some shape they uses transfomation matrix
can codejock add in read of xaml a matrix multiplication?

<Canvas>
        <Line X1="18.8" Y1="25.6" X2="12.6" Y2="14.3"/>
        <Rectangle Canvas.Left="15.2" Canvas.Top="13.5" Width="1" Height="12.9" RenderTransformOrigin="-15.2 -1.04651" Fill="#0064AF">
          <Rectangle.RenderTransform>
            <MatrixTransform Matrix="0.8768 -0.4809 0.4809 0.8768 -7.6622 10.0055"/>
          </Rectangle.RenderTransform>
        </Rectangle>
      </Canvas>

icon source:

<?xml version="1.0" encoding="UTF-8"?>
<Viewbox xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation" rel="nofollow - http://schemas.microsoft.com/winfx/2006/xaml/presentation" Stretch="Uniform">
  <Canvas Width="32" Height="32" Canvas.Left="0" Canvas.Top="0">
    <Canvas>
      <Canvas>
        <Path Data="M19.1,15.7h7.4L30.3,9l-3.7,-6.7h-7.4L15.4,9L19.1,15.7z" Fill="#0064AF" Opacity="0.4"/>
        <Path Data="M26.9,16.2h-8l-4,-7.2l4,-7.2h8l4,7.2L26.9,16.2zM19.4,15.2h6.8L29.7,9l-3.4,-6.1h-6.8L16,9L19.4,15.2z" Fill="#0064AF"/>
      </Canvas>
      <Polygon Points="11.4,22.8 9.9,23 9.6,24.3 6.9,20.9" Fill="#D8A8F4" StrokeLineJoin="Miter"/>
      <Polygon Points="8.8,21.9 9.8,23.2 11.1,22.8 9.5,26.8" Fill="#D8A8F4" StrokeLineJoin="Miter"/>
      <Polygon Points="9.8,24.8 10.1,23.3 8.9,22.6 12.9,21" Fill="#D8A8F4" StrokeLineJoin="Miter"/>
      <Canvas>
        <Line X1="1.5" Y1="24.8" X2="8" Y2="13.7"/>
        <Rectangle Canvas.Left="-1.7" Canvas.Top="18.8" Width="12.9" Height="1" RenderTransformOrigin="0.131783 -18.8" Fill="#0064AF">
          <Rectangle.RenderTransform>
            <MatrixTransform Matrix="0.4999 -0.8661 0.8661 0.4999 -14.3089 13.7897"/>
          </Rectangle.RenderTransform>
        </Rectangle>
      </Canvas>
      <Canvas>
        <Line X1="16.5" Y1="16.5" X2="3.6" Y2="16.5"/>
        <Rectangle Canvas.Left="3.8" Canvas.Top="15.9" Width="12.9" Height="1" RenderTransformOrigin="-0.294574 -15.9" Fill="#0064AF">
          <Rectangle.RenderTransform>
            <MatrixTransform Matrix="1 -0.00398702 0.00398702 1 -0.0654499 0.0409637"/>
          </Rectangle.RenderTransform>
        </Rectangle>
      </Canvas>
      <Canvas>
        <Line X1="12.7" Y1="31.6" X2="19.2" Y2="20.4"/>
        <Rectangle Canvas.Left="9.5" Canvas.Top="25.5" Width="12.9" Height="1" RenderTransformOrigin="-0.736434 -25.5" Fill="#0064AF">
          <Rectangle.RenderTransform>
            <MatrixTransform Matrix="0.4999 -0.8661 0.8661 0.4999 -14.5686 26.8092"/>
          </Rectangle.RenderTransform>
        </Rectangle>
      </Canvas>
      <Canvas>
        <Line X1="7.4" Y1="31.9" X2="1" Y2="20.8"/>
        <Rectangle Canvas.Left="3.7" Canvas.Top="19.9" Width="1" Height="12.9" RenderTransformOrigin="-3.7 -1.54264" Fill="#0064AF">
          <Rectangle.RenderTransform>
            <MatrixTransform Matrix="0.8656 -0.5007 0.5007 0.8656 -12.6312 5.6465"/>
          </Rectangle.RenderTransform>
        </Rectangle>
      </Canvas>
      <Canvas>
        <Line X1="18.8" Y1="25.6" X2="12.6" Y2="14.3"/>
        <Rectangle Canvas.Left="15.2" Canvas.Top="13.5" Width="1" Height="12.9" RenderTransformOrigin="-15.2 -1.04651" Fill="#0064AF">
          <Rectangle.RenderTransform>
            <MatrixTransform Matrix="0.8768 -0.4809 0.4809 0.8768 -7.6622 10.0055"/>
          </Rectangle.RenderTransform>
        </Rectangle>
      </Canvas>
      <Canvas>
        <Line X1="3.6" Y1="29.6" X2="16.5" Y2="29.8"/>
        <Rectangle Canvas.Left="9.5" Canvas.Top="23.2" Width="1" Height="12.9" RenderTransformOrigin="-9.5 -1.79845" Fill="#0064AF">
          <Rectangle.RenderTransform>
            <MatrixTransform Matrix="0.0160959 -0.9999 0.9999 0.0160959 -19.839 39.2134"/>
          </Rectangle.RenderTransform>
        </Rectangle>
      </Canvas>
      <Polygon Points="15.3,23.3 15,19.6 11,18.6 22.1,12.9" Fill="#FF5500" StrokeLineJoin="Miter"/>
    </Canvas>
  </Canvas>
</Viewbox>




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net