Class SkiaGif
public class SkiaGif : AnimatedFramesRenderer, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IVisualElementController, IElementController, IView, ITransform, IElement, IVisualTreeElement, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISkiaGestureListener, IHasAfterEffects, ISkiaControl, IDrawnBase, ICanBeUpdatedWithContext, ICanBeUpdated, ISkiaDisposable, IDisposable
- Inheritance
-
SkiaGif
- Implements
- Inherited Members
- Extension Methods
Constructors
SkiaGif()
For standalone use
public SkiaGif()
SkiaGif(SkiaImage)
For building custom controls
public SkiaGif(SkiaImage display)
Parameters
displaySkiaImage
Fields
AspectProperty
public static readonly BindableProperty AspectProperty
Field Value
SourceProperty
public static readonly BindableProperty SourceProperty
Field Value
_animation
public GifAnimation _animation
Field Value
Properties
Animation
public GifAnimation Animation { get; set; }
Property Value
Aspect
public TransformAspect Aspect { get; set; }
Property Value
Display
public SkiaImage Display { get; protected set; }
Property Value
Source
public string Source { get; set; }
Property Value
Methods
ApplyAspect()
protected void ApplyAspect()
ApplySpeed()
protected override void ApplySpeed()
GetAnimatorParent()
protected override SkiaControl GetAnimatorParent()
Returns
InvalidateMeasure()
Marks the current measure of an element as invalidated.
protected override void InvalidateMeasure()
LayoutDisplay()
protected virtual void LayoutDisplay()
LoadSource(string)
This is not replacing current animation, only pre-loading! Use SetAnimation after that if needed.
public Task<GifAnimation> LoadSource(string fileName)
Parameters
fileNamestring
Returns
OnAnimatorInitializing()
protected override void OnAnimatorInitializing()
OnAnimatorSeeking(double)
protected override void OnAnimatorSeeking(double time)
Parameters
timedouble
OnAnimatorUpdated(double)
Override this to react on animator running.
protected override void OnAnimatorUpdated(double value)
Parameters
valuedouble
ReloadSource()
public virtual void ReloadSource()
RenderFrame(DrawingContext)
protected override void RenderFrame(DrawingContext ctx)
Parameters
ctxDrawingContext
SetAnimation(GifAnimation, bool)
public void SetAnimation(GifAnimation animation, bool disposePrevious)
Parameters
animationGifAnimationdisposePreviousbool
Start(int)
public override void Start(int delayMs = 0)
Parameters
delayMsint
Events
Error
public event EventHandler<Exception> Error
Event Type
Success
public event EventHandler<string> Success