コード例 #1
0
    private void SetupGifPlayer(ITexture asset)
    {
        if (!(asset is Asset_Gif gifAsset))
        {
            return;
        }

        gifPlayer = new GifPlayer(gifAsset);
        gifPlayer.Play();
        gifPlayer.OnFrameTextureChanged += UpdateTexture;
    }
コード例 #2
0
 private void FrmGif_Load(object sender, EventArgs e)
 {
     _gif = new GifPlayer(pbImg);
     _gif.Play(AppDomain.CurrentDomain.BaseDirectory + "\\gif\\ScanQRInfo.gif", 3);
 }