- September 12, 2013
- 109
- 165
- 39
- Home Country
-
United States of America
I'm attempting to use BitmapImageSource to improve rendering of images in my plugin but it doesn't appear to work properly in MPF. My code below works in WPF with BitmapImage but in MPF the picture all only partially load. Am I doing something wrong or is there a bug in BitmapImageSource?
I get slices of pictures that go the entire height but do not fill the entire width.
Code:
<Image Stretch="Uniform" Margin ="{Binding Path=PictureBorderMarginsProperty}" Thumbnail="false" Width="{Binding Path=PictureWidthProperty}">
<Image.Source>
<BitmapImageSource DecodePixelWidth="{Binding Path=PictureWidthProperty}" UriSource="{Binding Path=PictureImageProperty}"/>
</Image.Source>
</Image>
I get slices of pictures that go the entire height but do not fill the entire width.