home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Plugin Development
Plugin: ImageSourceExtensions
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Brownard" data-source="post: 1165348" data-attributes="member: 48291"><p>This plugin adds a new type of ImageSource to MediaPortal 2 which allows skinners to implement smooth transitions and delayed loading of images.</p><p>The ImageSourceWrapper inherits from MultiImageSource so has all of its properties plus:</p><ul> <li data-xf-list-type="ul"><strong>Delay</strong>: The amount of time in seconds to delay the loading of images, useful for avoiding loading lots of images when scrolling quickly</li> <li data-xf-list-type="ul"><strong>DelayInOut</strong>: Whether the delay should apply when transitioning to or from null</li> <li data-xf-list-type="ul"><strong>Source</strong>: The primary image source, can either be a path to an image or an ImageSource that has a Uri property (MultiImageSource or BitmapImageSource)</li> <li data-xf-list-type="ul"><strong>FallbackSource</strong>: The image source to use if the primary source cannot be loaded, can either be a path to an image or an ImageSource that has a Uri property (MultiImageSource or BitmapImageSource)</li> </ul><p><strong>Source: </strong><a href="https://github.com/MediaPortal/MediaPortal-2/tree/PLUGIN_ImageSourceExtensions" target="_blank">https://github.com/MediaPortal/MediaPortal-2/tree/PLUGIN_ImageSourceExtensions</a></p><p></p><p><strong>Installation:</strong> Extract the attached zip to the MP2 client plugin directory</p><p></p><p><strong>Example usage:</strong></p><p>[CODE=XML]</p><p><Screen</p><p> xmlns:ie="clr-namespace:ImageSourceExtensions;assembly=ImageSourceExtensions"</p><p> ></p><p>...</p><p><Image x:Name="FanArtImageBackground" VerticalAlignment="Stretch" Stretch="UniformToFill" Grid.Row="0" Grid.Column="0"></p><p> <Image.Source></p><p> <ie:ImageSourceWrapper Delay="0.5" DelayInOut="true" Transition="transitions\dissolve" TransitionDuration="0.5"</p><p> Source="{Binding Source={StaticResource FanArtBackgroundModel}, Path=ImageSource, Converter={StaticResource FanArtImageSourceConverter}, ConverterParameter=FanArt;1920;1080;False}"</p><p> FallbackSource="FallbackFanart.png" /></p><p> </Image.Source></p><p></Image>[/CODE]</p></blockquote><p></p>
[QUOTE="Brownard, post: 1165348, member: 48291"] This plugin adds a new type of ImageSource to MediaPortal 2 which allows skinners to implement smooth transitions and delayed loading of images. The ImageSourceWrapper inherits from MultiImageSource so has all of its properties plus: [LIST] [*][B]Delay[/B]: The amount of time in seconds to delay the loading of images, useful for avoiding loading lots of images when scrolling quickly [*][B]DelayInOut[/B]: Whether the delay should apply when transitioning to or from null [*][B]Source[/B]: The primary image source, can either be a path to an image or an ImageSource that has a Uri property (MultiImageSource or BitmapImageSource) [*][B]FallbackSource[/B]: The image source to use if the primary source cannot be loaded, can either be a path to an image or an ImageSource that has a Uri property (MultiImageSource or BitmapImageSource) [/LIST] [B]Source: [/B][URL]https://github.com/MediaPortal/MediaPortal-2/tree/PLUGIN_ImageSourceExtensions[/URL] [B]Installation:[/B] Extract the attached zip to the MP2 client plugin directory [B]Example usage:[/B] [CODE=XML] <Screen xmlns:ie="clr-namespace:ImageSourceExtensions;assembly=ImageSourceExtensions" > ... <Image x:Name="FanArtImageBackground" VerticalAlignment="Stretch" Stretch="UniformToFill" Grid.Row="0" Grid.Column="0"> <Image.Source> <ie:ImageSourceWrapper Delay="0.5" DelayInOut="true" Transition="transitions\dissolve" TransitionDuration="0.5" Source="{Binding Source={StaticResource FanArtBackgroundModel}, Path=ImageSource, Converter={StaticResource FanArtImageSourceConverter}, ConverterParameter=FanArt;1920;1080;False}" FallbackSource="FallbackFanart.png" /> </Image.Source> </Image>[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Plugin: ImageSourceExtensions
Contact us
RSS
Top
Bottom