示例#1
0
        protected virtual CodedImage CreateManipulatedImage(CodedImage originalImage)
        {
            var newImage = originalImage.Clone(true);

            newImage.ResetAdditionalData();
            return(newImage);
        }
示例#2
0
        public void TestClone()
        {
            var image = new CodedImage {
                Size = new Size(2, 3), SourceImageFileName = @"c:\test.jpg"
            };
            CodedImage clonedImage = image.Clone(false);

            Assert.AreEqual(@"c:\test.jpg", clonedImage.SourceImageFileName);
        }