Esempio n. 1
0
        public static Image FromImageComplex(ImageComplex fileComplex, Data data)
        {
            var fileImage = fileComplex.GetImage;

            var result = new Image
            {
                Id = fileImage.Id,
                Width = fileImage.Width,
                Height = fileImage.Height,
                Size = fileImage.Size,
                Data = data,
                IsCropped = fileComplex.HasCroppedImage
            };

            return result;
        }
Esempio n. 2
0
 public UpdateImageCommand(ImageComplex image)
 {
     Image = image;
 }
Esempio n. 3
0
        public static ImageComplex Create(Guid originalId, Guid previewId, MediaTypes mediaType, string imageName)
        {
            var result = new ImageComplex
            {
                Id = originalId,
                OriginalId = originalId,
                PreviewId = previewId,
                MediaType = mediaType,
                Name = imageName
            };

            return result;
        }
 public RollbackCropImageCommand(ImageComplex image)
 {
     Image = image;
 }