예제 #1
0
        public async Task <ImageDataResult> GetImageDetails(byte[] image)
        {
            WriteableBitmap bitmapImage = await image.ToBitmapImageAsync();

            ImageDataResult data = new ImageDataResult
            {
                Width  = bitmapImage.PixelWidth,
                Heigth = bitmapImage.PixelHeight
            };

            return(data);
        }
예제 #2
0
        public async Task <ImageDataResult> GetImageDetails(byte[] image)
        {
            UIKit.UIImage uiImage = await image.ToImageAsync();

            ImageDataResult data = new ImageDataResult
            {
                Width  = (int)uiImage.Size.Width,
                Heigth = (int)uiImage.Size.Height
            };

            return(data);
        }
예제 #3
0
        public async Task <ImageDataResult> GetImageDetails(byte[] image)
        {
            Bitmap bmpImage = await image.ToBitmapAsync();

            ImageDataResult data = new ImageDataResult
            {
                Width  = bmpImage.Width,
                Heigth = bmpImage.Height
            };

            return(data);
        }