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

OpacityMask using ImageBrush does not work correctly

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.0-alpha.3
    • 2.0.0-alpha.1
    • Skin Engine
    • None

    Description

      If an ImageBrush (or VisualBrush) is used for an OpacityMask, the texture coordinates are not matched correctly.

      If the mask matches the render texture (full screen), the result is correct.

      h4. Steps to Reproduce
      See GUITestPlugin


      h4. Additional Information
      Default for ImageBrush is "Stretch=Fill".


      When changing to "Stretch=None", the output is different, but Texture is scaled/cropped wrong:

            <Rectangle Grid.Column="0" Grid.Row="1" Fill="Red" Width="595" Height="240" Margin="10">
              <Rectangle.OpacityMask>
                <ImageBrush ImageSource="homebutton_mask.png" Stretch="None"/>
              </Rectangle.OpacityMask>
            </Rectangle>

      Attachments

        1. GUITest.png
          720 kB
          chefkoch
        2. rendertexture.png
          7 kB
          chefkoch
        3. opacitymask.png
          2 kB
          chefkoch

        Activity

          People

            Baboonanza Baboonanza (Inactive)
            morpheus_xx morpheus_xx
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: