artem-zinnatullin / jet-image-loader

WP7+ fast and powerfull image loader with memory and storage caching for your projects!
Apache License 2.0
44 stars 14 forks source link

Add feature DecodePixelHeight DecodePixelWidth #25

Open jangooni opened 10 years ago

jangooni commented 10 years ago

Is it possible to get JIL to support DecodePixelHeight and Width properties?

artem-zinnatullin commented 10 years ago

You want to set image's decode height and width via JetImageLoader?

You would better use native implementation from BitmapImage (I don't have my Windows PC at the moment, here is not tested example):

<Image>
    <BitmapImage 
        SourceStream="{Binding YourImageUri, Converter={StaticResource MyAppJetImageLoaderConverter}}" 
        DecodePixelWidth="250" 
        DecodePixelHeight="300" />
</Image>

I hope it works :) If not, I'll take a look at that issue later, when I'll get my Windows workstation.

Please comment this solution after testing it and Happy New Year :)

jangooni commented 10 years ago

Hey Artem thanks for the response.

BitmapImage only has a UriSource property, no SourceStream property. My plan was to continue to use Image's Source and Convertor, and set the decode property in the config.

artem-zinnatullin commented 10 years ago

That's sad :( ok, I'll think about how to implement that feature

jangooni commented 10 years ago

Thanks! Keep up the great work!