GifProcessor: Is in charge of choosing which gif processor tu use (typescript's webworker through GIFProcessingBridge or Unity's plugin UniGif) for downloading, processing and discarding gifs
        protected override void OnLoad(Action OnSuccess, Action OnFail)
        {
            var processor = new GifProcessor(url);

            asset.processor = processor;
            loadingRoutine  = CoroutineStarter.Start(
                processor.Load(
                    frames =>
            {
                asset.frames = frames;
                OnSuccess?.Invoke();
            }, OnFail));
        }
Ejemplo n.º 2
0
        public static void SaveAsGif(this Bitmap image, string path, bool transparent)
        {
            var processor = new GifProcessor(image);

            processor.Save(path, transparent);
        }