示例#1
0
        void UpdateInfo()
        {
            string path = binding.GetAbsolutePath();

            if (System.IO.File.Exists(path))
            {
                image = Images.Load(Manager.Native, path);
            }
            else
            {
                image = null;
            }
        }
示例#2
0
        void UpdateInfo()
        {
            string path = binding.GetAbsolutePath();

            if (System.IO.File.Exists(path))
            {
                image    = Images.Load(Manager.Native, path);
                infoText = "" + image.GetWidth() + "x" + image.GetHeight();
            }
            else
            {
                image    = null;
                infoText = "";
            }
        }
示例#3
0
        void UpdateInfo()
        {
            string path = binding.GetAbsolutePath();

            if (System.IO.File.Exists(path))
            {
                thumbnail = ThumbnailManager.Load(path);
                if (thumbnail == null)
                {
                    infoText = "";
                    return;
                }

                var image = thumbnail.Image;
                infoText = "" + image.GetWidth() + "x" + image.GetHeight();
            }
            else
            {
                thumbnail = null;
                infoText  = "";
            }
        }
示例#4
0
        void UpdateInfo()
        {
            string path = binding.GetAbsolutePath();

            image = Images.Load(Manager.Native, path);
        }