Uploaded image for project: 'MediaPortal 2'
  1. MediaPortal 2
  2. MP2-455

Rendering of VisualBrush is not working for OpacityMasks

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.0-Summer Release '15
    • 2.0.0-Anniversary Edition Update 1
    • Skin Engine
    • None

    Description

      <p>Visuals used inside VisualBrushes for OpacityMasks result in no visible output.</p>

      <p>&nbsp;</p>

      <p>Example structure:</p>

      <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Rectangle&gt;<br />
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Rectangle.OpacityMask&gt;<br />
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;VisualBrush&gt;<br />
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;VisualBrush.Visual&gt;<br />
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Rectangle x:Name=&quot;RectMask&quot; Fill=&quot;#FFFFFFFF&quot; HorizontalAlignment=&quot;Stretch&quot; VerticalAlignment=&quot;Stretch&quot;<br />
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RadiusX=&quot;20&quot; RadiusY=&quot;20&quot; /&gt;<br />
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/VisualBrush.Visual&gt;<br />
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/VisualBrush&gt;<br />
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Rectangle.OpacityMask&gt;<br />
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Rectangle&gt;</p>

      <p>Cause: for Opacity rendering step the graphics device has alpha channel blending enbled. This leads to an &quot;empty&quot; texture of the visual brush, and thus to no rendering of rectangle.</p>

      Attachments

        Activity

          People

            morpheus_xx morpheus_xx
            morpheus_xx morpheus_xx
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: