public void OnPictureTaken(byte[] data)
        {
            cameraSource.Stop();

            Android.Graphics.Bitmap bm = ImageController.ByteArrayToBitmap(data);
            imageview.SetImageBitmap(bm);
            bm = ImageController.LoadBitmapFromView(imageview);
            bm = ImageController.ResizeBitmap(bm);
            byteArrayPicture = ImageController.BitmapToByteArray(bm);
        }
示例#2
0
        public void OnPictureTaken(byte[] data)
        {
            DataController.Instance().openProfile = false;

            Android.Graphics.Bitmap bm = ImageController.ByteArrayToBitmap(data);
            imageview.SetImageBitmap(bm);
            bm = ImageController.LoadBitmapFromView(imageview);
            bm = ImageController.ResizeBitmap(bm);
            byteArrayPicture = ImageController.BitmapToByteArray(bm);


            Recognition.RecognitionController.RecognisePic(byteArrayPicture);

            DataController.Instance().isShowingRecognition = true;

            Intent i = new Intent(this, typeof(ProfileActivity));

            StartActivity(i);
        }