Ugrás a tartalomhoz

.NET Programming Technologies

Gergely Kovásznai, Csaba Biró

Eszterházy Károly College

SkewTransform

SkewTransform

The SkewTransform can strain the original element.

  1. AngleX tilt the item on the x axis

  2. AngleY tilt the item on the y axis

Example VIII.4 SkewTransform

VIII.4. SkewTransform

<StackPanel>

    <Image Width="90" Height="60" Source="images/car.jpg" Margin="30">

      <Image.RenderTransform>

       <SkewTransform AngleX="45" AngleY="0" CenterX="0" CenterY="0"/>

      </Image.RenderTransform>

    </Image>

    <Image Width="90" Height="60" Source="images/car.jpg" Margin="30">

      <Image.RenderTransform>

       <SkewTransform AngleX="45" AngleY="0" CenterX="25" CenterY="25"/>

      </Image.RenderTransform>

    </Image>

    <Image Width="90" Height="60" Source="images/car.jpg" Margin="30">

      <Image.RenderTransform>

       <SkewTransform AngleX="0" AngleY="45" CenterX="25" CenterY="25"/>

      </Image.RenderTransform>

    </Image>

</StackPanel>