Ejemplo n.º 1
0
        public void updateCurrentCropViewOptions()
        {
            CropImageViewOptions options = new CropImageViewOptions();

            options.scaleType       = mCropImageView.GetScaleType();
            options.cropShape       = mCropImageView.GetCropShape();
            options.guidelines      = mCropImageView.GetGuidelines();
            options.aspectRatio     = mCropImageView.AspectRatio;
            options.fixAspectRatio  = mCropImageView.IsFixAspectRatio;
            options.showCropOverlay = mCropImageView.ShowCropOverlay;
            options.showProgressBar = mCropImageView.ShowProgressBar;
            options.autoZoomEnabled = mCropImageView.AutoZoomEnabled;
            options.maxZoomLevel    = mCropImageView.MaxZoom;
            ((MainActivity)Activity).setCurrentOptions(options);
        }
Ejemplo n.º 2
0
        public void UpdateCurrentCropViewOptions()
        {
            CropImageViewOptions options = new CropImageViewOptions();

            options.ScaleType        = _cropImageView.GetScaleType();
            options.CropShape        = _cropImageView.GetCropShape();
            options.Guidelines       = _cropImageView.GetGuidelines();
            options.AspectRatio      = ((int)_cropImageView.AspectRatio.First, (int)_cropImageView.AspectRatio.Second);
            options.FixAspectRatio   = _cropImageView.IsFixAspectRatio;
            options.ShowCropOverlay  = _cropImageView.ShowCropOverlay;
            options.ShowProgressBar  = _cropImageView.ShowProgressBar;
            options.AutoZoomEnabled  = _cropImageView.AutoZoomEnabled;
            options.MaxZoomLevel     = _cropImageView.MaxZoom;
            options.FlipHorizontally = _cropImageView.FlippedHorizontally;
            options.FlipVertically   = _cropImageView.FlippedVertically;
            ((MainActivity)Activity).SetCurrentOptions(options);
        }
Ejemplo n.º 3
0
        public void UpdateCurrentCropViewOptions()
        {
            CropImageViewOptions options = new CropImageViewOptions();

            options.scaleType        = mCropImageView.GetScaleType();
            options.cropShape        = mCropImageView.GetCropShape();
            options.guidelines       = mCropImageView.GetGuidelines();
            options.aspectRatio      = new System.Tuple <int, int>((int)mCropImageView.AspectRatio.First, (int)mCropImageView.AspectRatio.Second);
            options.fixAspectRatio   = mCropImageView.IsFixAspectRatio;
            options.showCropOverlay  = mCropImageView.ShowCropOverlay;
            options.showProgressBar  = mCropImageView.ShowProgressBar;
            options.autoZoomEnabled  = mCropImageView.AutoZoomEnabled;
            options.maxZoomLevel     = mCropImageView.MaxZoom;
            options.flipHorizontally = mCropImageView.FlippedHorizontally;
            options.flipVertically   = mCropImageView.FlippedVertically;
            ((ImageCropActivity)Activity).SetCurrentOptions(options);
        }