Animated gif in Xamarin.forms - c#

I would like to add a gif image to my app. The app has to record audio in mp3 format. I would like to have a gif image for recording which would just flash or show loading gif when recording is started. Kind of indication for the user saying the recording is going on.
If gif is not possible then any other suggestions are welcome.

Related

How can I extract the duration of a GIF animation from a file in UWP

I found this article http://web.archive.org/web/20130820015012/http://madskristensen.net/post/Examine-animated-Gife28099s-in-C.aspx (very helpful).
Unfortunately, our favorite hobbled race horse, UWP, does not include the required APIs.
I am working on a slide show app and would like to allow the user to advance an image with a set timing, except if it is an animated GIF, then I want to show the full animation once...
So, where can I extract the duration of the complete GIF animation, using the UWP on board tools?

How to add zooming facility like native video capturing in app for window phone 8

I am developing the customize video capture app. In that I am using AudioVideoCaptureDevice to record the video. Like a Native video capturing I want to add zooming in the video recording. In native video recording one can zoom the screen only before starting the capturing, I need the same behavior. Please help.
Thanks in advance.

Progressive Image Loading Technique

When i am searching image through Google Link to view
it load blur image first then load high-quality image progressively as image below
after some time
but by inspecting that image i found This Link and by going that link it load complete image or loaded image is viewed as top to down preview as below picture.
how it happened?
what technique Google use for Progressive loading of image.
how can i do loading of image as Google do in my site?
is it possible using c# ?
It seems to me that there is no actual progressive loading going on in Google Images.
When you click on an image thumbnail, there is a quick animation "unveiling" the full resolution image. While the animation is happening, the image that is partly displayed is actually just the thumbnail (size 251x201), but upscaled to the resolution of the larger image (1280X1024).
The way to do this upscaling in HTML should be something like this:
<img src="thumbnail.jpg" width="251" height="201">
The full resolution image is then displayed when the animation is completed, replacing the upscaled thumbnail. So this is not a progressive loading after all.
Still, you might want to read about Progressive JPEG: http://en.wikipedia.org/wiki/JPEG#JPEG_compression.

save video from story board to media library WP7

is there a way to capture or to save the story board animation to media library in windows mobile? Currently i am working with an animation which changes the image for every second. How can i save this into a video format??
There is no mechanism to save any video content to Media Library.
Currently, using API, you can save pictures. Nothing else
Please see
http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.media.medialibrary_members.aspx

Repost of previous question: MediaElement in WPF

I am looking for a solution for a question that was already posted but did not answer correctly, thanks in advance.
Show first frame of video in WPF MediaElement
The solution in the other thread should work but you could approach it differently.
Basically, to avoid having to load the video just to grab the first frame you could generate a static image that is the frame you want to show. If you are encoding the video most encoding software will generate a thumbnail for you for this purpose. If not you can screen shot a frame and use that
Then display that image in a normal WPF image control when the movie is not playing. When the user plays the video use a trigger to hide the image and show the video.
This will give you the effect you want.
Downside: This static image will get out of sync with the video if your video file is updated (you would need to regenerate the thumbnail in this case)

Categories