private void SetupGifPlayer(ITexture asset) { if (!(asset is Asset_Gif gifAsset)) { return; } gifPlayer = new GifPlayer(gifAsset); gifPlayer.Play(); gifPlayer.OnFrameTextureChanged += UpdateTexture; }
private void FrmGif_Load(object sender, EventArgs e) { _gif = new GifPlayer(pbImg); _gif.Play(AppDomain.CurrentDomain.BaseDirectory + "\\gif\\ScanQRInfo.gif", 3); }