コード例 #1
0
 public static string InstantiateImageCodec(List <int> list, _Callback <SKCodec> callback, _ImageInfo imageInfo, double decodedCacheRatioCap)
 {
     return(null);
 }
コード例 #2
0
        public Image Next()
        {
            lock(this)
            {
                Image next = null;
                if (this._Source != null)
                {
                    next = this._Source.Next();
                }

                if (next == null)
                {
                    this._Resort();
                    if (this._Images.Count > 0)
                    {
                        _ImageInfo info = this._Images[0];
                        info.Usages++;
                        info.LastSeen = this._Frame;
                        next = info.Image;
                    }
                }
                else
                {
                    _ImageInfo ninfo = new _ImageInfo();
                    ninfo.Image = next;
                    ninfo.Usages = 1;
                    ninfo.LastSeen = this._Frame;
                    this._Images.Add(ninfo);
                }
                this._Frame++;
                return next;
            }
        }