







In some cases you may need to get GIF previews (first frame) instead of decoding all frames. For example, you are developing image gallery and it should work fast. Just use decode iterator and stop it on the first iteration. Then you'll get the first frame. You even don't need to use a coroutine in this case.
Namespace:
Assets.PowerGif.Examples.Scripts
Assembly: Assembly-CSharp (in Assembly-CSharp.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Class PreviewExample |
C# |
---|
public class PreviewExample : ExampleBase |
C++ |
---|
public ref class PreviewExample : public ExampleBase^ |
JScript |
---|
public class PreviewExample |
Inheritance Hierarchy
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Assets.PowerGif.Examples.Scripts.ExampleBase
Assets.PowerGif.Examples.Scripts.PreviewExample
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Assets.PowerGif.Examples.Scripts.ExampleBase
Assets.PowerGif.Examples.Scripts.PreviewExample