I found a rendering bug in both Silverlight and WPF.
A line shows up when applying a transform to images
that are next to each other.
I arranged Visuals in Canvas.
Then applied RotateTransform or ScaleTransform.
Line breaking shows up between
Images. The images are tiles of a larger image.
Following
is the XAML example for Silverlight of this bug.
<Canvas>
<Canvas Height="624" Canvas.Left="0" Canvas.Top="0">
<Canvas>
<Image Source="a.jpg" Canvas.Left="0" Canvas.Top="0" />
<Image Source="b.jpg" Canvas.Left="208" Canvas.Top="0" />
<Image Source="c.jpg" Canvas.Left="0" Canvas.Top="312" />
<Image Source="d.jpg" Canvas.Left="208" Canvas.Top="312" />
</Canvas>
</Canvas>
<Canvas Canvas.Left="851.539105243401" Canvas.Top="182.765368539594" Height="0" Width="0">
<Canvas.RenderTransform>
<RotateTransform Angle="45"/>
</Canvas.RenderTransform>
<Canvas>
<Image Source="a.jpg" Canvas.Left="0" Canvas.Top="0" />
<Image Source="b.jpg" Canvas.Left="208" Canvas.Top="0" />
<Image Source="c.jpg" Canvas.Left="0" Canvas.Top="312" />
<Image Source="d.jpg" Canvas.Left="208" Canvas.Top="312" />
</Canvas>
</Canvas>
<Canvas Canvas.Left="416" Canvas.Top="0" Height="0" Width="0">
<Canvas.RenderTransform>
<ScaleTransform ScaleX="0.71" ScaleY="0.71" />
</Canvas.RenderTransform>
<Canvas>
<Image Source="a.jpg" Canvas.Left="0" Canvas.Top="0" />
<Image Source="b.jpg" Canvas.Left="208" Canvas.Top="0" />
<Image Source="c.jpg" Canvas.Left="0" Canvas.Top="312" />
<Image Source="d.jpg" Canvas.Left="208" Canvas.Top="312" />
</Canvas>
</Canvas>
</Canvas>
In this XAML, I applied ScaleTransform and RotateTransform to Canvases tiled by 4 images. The left most image is original tiles next to each other and it does not show lines between the tiles. The middle one is a scaled image of the first one and it shows lines between the tiles. The right most image is a rotation of the first image and it also shows lines between the tiles. (Lines are noted with red arrows.)
This issue also occurs in WPF. I made another example using WPF.
This bug also occurs in VirtualEarth Silverlight 1.1 demo made by Greg Schechter.
Line Breaking WPF Source :
Line Breaking Silverlight Source :




LineDemo.zip









