Beispiel #1
0
 public void SetCropImageViewOptions(CropImageViewOptions options)
 {
     mCropImageView.SetScaleType(options.scaleType);
     mCropImageView.SetCropShape(options.cropShape);
     mCropImageView.SetGuidelines(options.guidelines);
     mCropImageView.SetAspectRatio(options.aspectRatio.Item1, options.aspectRatio.Item2);
     mCropImageView.SetFixedAspectRatio(options.fixAspectRatio);
     mCropImageView.SetMultiTouchEnabled(options.multitouch);
     mCropImageView.ShowCropOverlay     = (options.showCropOverlay);
     mCropImageView.ShowProgressBar     = (options.showProgressBar);
     mCropImageView.AutoZoomEnabled     = (options.autoZoomEnabled);
     mCropImageView.MaxZoom             = (options.maxZoomLevel);
     mCropImageView.FlippedHorizontally = (options.flipHorizontally);
     mCropImageView.FlippedVertically   = (options.flipVertically);
 }
Beispiel #2
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);
        }
 public void SetCurrentOptions(CropImageViewOptions options)
 {
     mCropImageViewOptions = options;
     // UpdateDrawerTogglesByOptions(options);
 }