[Mono-bugs] [Bug 346082] GradientBrush mis-render for SpreadMethod= Repeat|Reflect in Absolute MappingMode and small values
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Dec 4 20:58:47 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=346082
User spouliot at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=346082#c1
--- Comment #1 from Sebastien Pouliot <spouliot at novell.com> 2007-12-04 18:58:46 MST ---
<Canvas xmlns="http://schemas.microsoft.com/client/2007">
<!-- OK - nothing is drawn -->
<Rectangle Canvas.Left="60" Width="50" Height="50">
<Rectangle.Fill>
<LinearGradientBrush SpreadMethod="Pad" StartPoint="0,0"
EndPoint="1,1" MappingMode="RelativeToBoundingBox">
<GradientStop Color="Red" Offset="0.0" />
<GradientStop Color="Green" Offset="0.5" />
<GradientStop Color="Blue" Offset="1.0" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<!-- OK - red green blue in a diagonal from left top to bottom right
-->
<Rectangle Canvas.Left="60" Width="50" Height="50">
<Rectangle.Fill>
<LinearGradientBrush SpreadMethod="Pad" StartPoint="0,0"
EndPoint="1,1">
<GradientStop Color="Red" Offset="0.0" />
<GradientStop Color="Green" Offset="0.5" />
<GradientStop Color="Blue" Offset="1.0" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<!-- OK - all blue -->
<Rectangle Canvas.Left="120" Width="50" Height="50">
<Rectangle.Fill>
<LinearGradientBrush SpreadMethod="Pad" StartPoint="0,0"
EndPoint="0,0" MappingMode="RelativeToBoundingBox">
<GradientStop Color="Red" Offset="0.0" />
<GradientStop Color="Green" Offset="0.5" />
<GradientStop Color="Blue" Offset="1.0" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
Reflect for
<!-- OK - all blue -->
<Rectangle Canvas.Left="180" Width="50" Height="50">
<Rectangle.Fill>
<LinearGradientBrush SpreadMethod="Pad" StartPoint="0,0"
EndPoint="0,0">
<GradientStop Color="Red" Offset="0.0" />
<GradientStop Color="Green" Offset="0.5" />
<GradientStop Color="Blue" Offset="1.0" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<!-- OK - all blue -->
<Rectangle Canvas.Top="60" Width="50" Height="50">
<Rectangle.Fill>
<LinearGradientBrush SpreadMethod="Pad" StartPoint="0,0"
EndPoint="1,1" MappingMode="Absolute">
<GradientStop Color="Red" Offset="0.0" />
<GradientStop Color="Green" Offset="0.5" />
<GradientStop Color="Blue" Offset="1.0" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<!-- OK - all blue -->
<Rectangle Canvas.Top="60" Canvas.Left="60" Width="50" Height="50">
<Rectangle.Fill>
<LinearGradientBrush SpreadMethod="Pad" StartPoint="0,0"
EndPoint="0.5,0.5" MappingMode="Absolute">
<GradientStop Color="Red" Offset="0.0" />
<GradientStop Color="Green" Offset="0.5" />
<GradientStop Color="Blue" Offset="1.0" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<!-- OK - all blue -->
<Rectangle Canvas.Top="60" Canvas.Left="120" Width="50" Height="50">
<Rectangle.Fill>
<LinearGradientBrush SpreadMethod="Pad" StartPoint="0,0"
EndPoint="0.5,0.5" MappingMode="Absolute">
<GradientStop Color="Red" Offset="0.0" />
<GradientStop Color="Green" Offset="0.5" />
<GradientStop Color="Blue" Offset="1.0" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<!-- OK - all blue -->
<Rectangle Canvas.Top="60" Canvas.Left="180" Width="50" Height="50"
Fill="Blue" />
<!-- BAD - should be grey but Moonlight shows blue -->
<Rectangle Canvas.Top="120" Width="50" Height="50">
<Rectangle.Fill>
<LinearGradientBrush SpreadMethod="Reflect" StartPoint="0,0"
EndPoint="0,0" MappingMode="Absolute">
<GradientStop Color="Red" Offset="0.0" />
<GradientStop Color="Green" Offset="0.5" />
<GradientStop Color="Blue" Offset="1.0" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<!-- BAD - should be grey but Moonlight shows a purple-like pattern -->
<Rectangle Canvas.Top="120" Canvas.Left="60" Width="50" Height="50">
<Rectangle.Fill>
<LinearGradientBrush SpreadMethod="Reflect" StartPoint="0,0"
EndPoint="0.5,0.5" MappingMode="Absolute">
<GradientStop Color="Red" Offset="0.0" />
<GradientStop Color="Green" Offset="0.5" />
<GradientStop Color="Blue" Offset="1.0" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<!-- BAD - should be grey but Moonlight shows a tight rgb pattern -->
<Rectangle Canvas.Top="120" Canvas.Left="120" Width="50" Height="50">
<Rectangle.Fill>
<LinearGradientBrush SpreadMethod="Reflect" StartPoint="0,0"
EndPoint="1.0,1.0" MappingMode="Absolute">
<GradientStop Color="Red" Offset="0.0" />
<GradientStop Color="Green" Offset="0.5" />
<GradientStop Color="Blue" Offset="1.0" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<!-- OK - a red green blue pattern in a diagonal from left top to
bottom right -->
<Rectangle Canvas.Top="120" Canvas.Left="180" Width="50" Height="50">
<Rectangle.Fill>
<LinearGradientBrush SpreadMethod="Reflect" StartPoint="0,0"
EndPoint="2.0,2.0" MappingMode="Absolute">
<GradientStop Color="Red" Offset="0.0" />
<GradientStop Color="Green" Offset="0.5" />
<GradientStop Color="Blue" Offset="1.0" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<!-- BAD - should be grey but Moonlight shows blue -->
<Rectangle Canvas.Top="180" Width="50" Height="50">
<Rectangle.Fill>
<LinearGradientBrush SpreadMethod="Repeat" StartPoint="0,0"
EndPoint="0,0" MappingMode="Absolute">
<GradientStop Color="Red" Offset="0.0" />
<GradientStop Color="Green" Offset="0.5" />
<GradientStop Color="Blue" Offset="1.0" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<!-- BAD - should be grey but Moonlight shows blue -->
<Rectangle Canvas.Top="180" Canvas.Left="60" Width="50" Height="50">
<Rectangle.Fill>
<LinearGradientBrush SpreadMethod="Repeat" StartPoint="0,0"
EndPoint="0.5,0.5" MappingMode="Absolute">
<GradientStop Color="Red" Offset="0.0" />
<GradientStop Color="Green" Offset="0.5" />
<GradientStop Color="Blue" Offset="1.0" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<!-- BAD - should be grey but Moonlight shows a blueisgh pattern -->
<Rectangle Canvas.Top="180" Canvas.Left="120" Width="50" Height="50">
<Rectangle.Fill>
<LinearGradientBrush SpreadMethod="Repeat" StartPoint="0,0"
EndPoint="1.0,1.0" MappingMode="Absolute">
<GradientStop Color="Red" Offset="0.0" />
<GradientStop Color="Green" Offset="0.5" />
<GradientStop Color="Blue" Offset="1.0" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<!-- BAD - similar but Moonlight has too much blue in the pattern -->
<Rectangle Canvas.Top="180" Canvas.Left="180" Width="50" Height="50">
<Rectangle.Fill>
<LinearGradientBrush SpreadMethod="Repeat" StartPoint="0,0"
EndPoint="2.0,2.0" MappingMode="Absolute">
<GradientStop Color="Red" Offset="0.0" />
<GradientStop Color="Green" Offset="0.5" />
<GradientStop Color="Blue" Offset="1.0" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
</Canvas>
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list