CopyImage() public méthode

Copies the image (and all associated data files) to the specified image name
public CopyImage ( IFilenameResolver destinationImageFilenameResolver ) : void
destinationImageFilenameResolver IFilenameResolver /// Details of where we need to copy the files. ///
Résultat void
        /// <summary>
        /// Copies the image and all associated data
        /// </summary>
        /// <returns>Filename for the newly created image</returns>
        /// <param name='pictureId'>
        /// Identifier of the image to copy
        /// </param>
        private string CopyImage(Guid pictureId)
        {
            var existingFileFilenameResolver = this.CreateFilenameResolver(pictureId);
            var pictureIOManager = new PictureIOManager(existingFileFilenameResolver);

            var newFileFilenameResolver = this.CreateFilenameResolver(Guid.NewGuid());

            pictureIOManager.CopyImage(newFileFilenameResolver);

            return newFileFilenameResolver.MasterImageFilename;
        }