protected virtual CodedImage CreateManipulatedImage(CodedImage originalImage) { var newImage = originalImage.Clone(true); newImage.ResetAdditionalData(); return(newImage); }
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); }