Esempio n. 1
0
        public SCIPicture GetPicture()
        {
            if (_pic != null)
            {
                return(_pic);
            }
            var data = GetContent();

            return(_pic = new SCIPicture(data));
        }
Esempio n. 2
0
        public void ImagePackTest()
        {
            var package = Utils.LoadPackage();

            var res = package.GetResouce <ResPicture>(100);
            var pic = res.GetPicture(false);

            var newPic = new SCIPicture(pic.GetBytes());

            Assert.AreEqual(pic.Image, newPic.Image, "Image encode error");
        }
Esempio n. 3
0
 public void SetPicture(SCIPicture pic)
 {
     _pic = pic;
 }
Esempio n. 4
0
        public void SetPicture(SCIPicture pic)
        {
            var data = pic.GetBytes();

            SaveTranslate(data);
        }