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

Get image dimensions after dowloading #9

Closed
wsvdmeer opened this issue Apr 21, 2015 · 4 comments
Closed

Get image dimensions after dowloading #9

wsvdmeer opened this issue Apr 21, 2015 · 4 comments

Comments

@wsvdmeer
Copy link

Is there a way to get the original image dimensions after downloading the image?

ImageService.LoadUrl(url).Success(() => {
          //GET ORIGINAL SIZE
 }).Into(positionImage);

I need it to show markers on top of the imageview

@molinch
Copy link
Collaborator

molinch commented Apr 21, 2015

That is something I can easily implement. I will keep you updated.

@molinch
Copy link
Collaborator

molinch commented Apr 27, 2015

It has been implemented in this commit c9c91a5

There is now an extra Success method that allows an Action<int, int> as the callback. As you can imagine first parameter is the width, then the height.
It is not yet on NuGet though. Could you make a feedback?

@molinch
Copy link
Collaborator

molinch commented May 1, 2015

This is now on NuGet so I close the task

@molinch molinch closed this as completed May 1, 2015
@wsvdmeer
Copy link
Author

Sorry for the late response but it works perfectly!

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