public IImage ImageFromFile(string path)
        {
            var bmp = BitmapFactory.DecodeFile(path);

            if (bmp == null)
            {
                return(null);
            }

            var dimg = new AndroidImage()
            {
                Bitmap = bmp
            };

            return(dimg);
        }
示例#2
0
        public IImage ImageFromFile(string path)
        {
            var bmp = BitmapFactory.DecodeFile (path);
            if (bmp == null) return null;

            var dimg = new AndroidImage () {
                Bitmap = bmp
            };
            return dimg;
        }