Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature DecodePixelHeight DecodePixelWidth #25

Open
jangooni opened this issue Jan 3, 2014 · 4 comments
Open

Add feature DecodePixelHeight DecodePixelWidth #25

jangooni opened this issue Jan 3, 2014 · 4 comments

Comments

@jangooni
Copy link

jangooni commented Jan 3, 2014

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

@artem-zinnatullin
Copy link
Owner

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
Copy link
Author

jangooni commented Jan 4, 2014

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
Copy link
Owner

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

@jangooni
Copy link
Author

jangooni commented Jan 5, 2014

Thanks! Keep up the great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants