Esempio n. 1
0
        void SetPreviewTransformations()
        {
            var currentTransformations = PreviewTransformations?.ToList() ?? new List <ITransformation>();

            currentTransformations.Insert(0, _crop);
            _image.Transformations = currentTransformations;
        }
Esempio n. 2
0
 void SetPreviewTransformations()
 {
     if (PreviewTransformations == null || PreviewTransformations.Count == 0)
     {
         _image.Transformations = new List <ITransformation>()
         {
             _crop
         };
     }
     else
     {
         var list = PreviewTransformations.ToList();
         list.Insert(0, _crop);
         _image.Transformations = list;
     }
 }