[forms-devel] Add IsAnimatedImage and IsPlaying to Image
sh min
shmin.dev at gmail.com
Tue Aug 16 17:33:12 UTC 2016
Hello,
Thanks for you reply, IsAnimated looks better.
About your question, IsPlaying property is to start/stop animation. It can
be used after loading of the image and it is related to how the image
displayed.
So, I thought that it can be added to Image class.
Could I ask why you think that ImageSource is more appropriate than Image?
Best Regards,
Sunghyun Min
2016-08-16 16:20 GMT+09:00 Jason Smith <jas at microsoft.com>:
> Is it perhaps better to place these properties on the ImageSource?
>
>
>
> Also IsAnimatedImage is redundant, since the property is on an Image
> already, we can shorted to simple IsAnimated.
>
>
>
> *From:* forms-devel [mailto:forms-devel-bounces at lists.dot.net] *On Behalf
> Of *sh min
> *Sent:* Monday, August 15, 2016 9:17 PM
> *To:* forms-devel at lists.dot.net
> *Subject:* [forms-devel] Add IsAnimatedImage and IsPlaying to Image
>
>
>
> Hello all,
>
> I'd like to talk about adding a feature for playing animated image such as
> GIF files.
> Since Animated images are used increasingly, many platforms already
> provide displaying or making animated image in a different way.
>
> UWP - https://msdn.microsoft.com/en-us/library/windows/apps/
> windows.ui.xaml.controls.image.aspx
> <https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fmsdn.microsoft.com%2fen-us%2flibrary%2fwindows%2fapps%2fwindows.ui.xaml.controls.image.aspx&data=01%7c01%7cjas%40microsoft.com%7cf0dc50a1747c4e501f9f08d3c58c3214%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=zIr0fsm5jjQYrcbw4Gx0qvYkaoCKpWeJrSyoWPuQ%2b8U%3d>
> https://msdn.microsoft.com/en-us/library/windows/apps/
> windows.ui.xaml.media.imaging.bitmapimage.aspx
> <https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fmsdn.microsoft.com%2fen-us%2flibrary%2fwindows%2fapps%2fwindows.ui.xaml.media.imaging.bitmapimage.aspx&data=01%7c01%7cjas%40microsoft.com%7cf0dc50a1747c4e501f9f08d3c58c3214%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=BaYXBF5C%2bWHGvL7zumF5CyGrYm%2b6N56FOTrdoli%2bGH8%3d>
> Aandroid - https://developer.android.com/reference/android/graphics/
> drawable/AnimationDrawable.html
> <https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fdeveloper.android.com%2freference%2fandroid%2fgraphics%2fdrawable%2fAnimationDrawable.html&data=01%7c01%7cjas%40microsoft.com%7cf0dc50a1747c4e501f9f08d3c58c3214%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=pmgqlY9hoLpGx9NEtC8aQKqBdhBiLXA1Yn8%2bnsTzm1s%3d>
> iOS - https://developer.apple.com/library/ios/documentation/
> UIKit/Reference/UIImageView_Class/
> <https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fdeveloper.apple.com%2flibrary%2fios%2fdocumentation%2fUIKit%2fReference%2fUIImageView_Class%2f&data=01%7c01%7cjas%40microsoft.com%7cf0dc50a1747c4e501f9f08d3c58c3214%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=xl9xQbcgL0bOhvjlh5R%2fLOIDf8GDboWAXxOT44tetH8%3d>
>
> But unfortunately I couldn't find such APIs in Xamarin.Forms.
> So, to be able to use animated image in app, my proposal is to add below
> properties to Image class like UWP.
>
> 1) IsAnmatedImage - Boolean value indicating whether the image is animated.
>
> 2) IsPlaying - Boolean value indicating whether the animation is playing.
> If this value is true the animation will start.
>
> I think that it will reduce the time to play animated image for App
> developers.
> What do you think about this?
>
> Best Regards
> Sunghyun Min
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/forms-devel/attachments/20160817/23de3e07/attachment.html>
More information about the forms-devel
mailing list