.net - Resize an Image and keeping Metadata/property item -


.NET libraries work excellent in resizing images that look great:

  Bitmap NewImage = New Bitmap (Nudity, NewHead); Using (graphics gr = graphics.frame image (new image)) {gr.InterolationMode = InterpolationMode.HighQualityBilinear; Gr.DrawImage (srcImage, new rectangle (0, 0, NewWind, NewHead)); }  

An issue that is running with the solutions I have seen online erases embedded metadata within these images. Is there a way to move this data into a new image? Or use the original image and continue this data?

Ideally I would like to maintain this solution only in Microsoft's NIT libraries if possible.

Replace all through the image. Property items and add them to the new image How you can copy metadata using this method, get sample.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -