Copy Clipping Path

View as Markdown

Adobe ResourcesBitmapReadWrite

Copies all Adobe resources including clipping path.

Code Snippet

using (var reader = new JpegReader("Apple.jpg"))
using (var bitmap = reader.Frames[0].GetBitmap())
{
    var jpegSettings = new JpegSettings();
    jpegSettings.AdobeResources = reader.AdobeResources;

    bitmap.Save("CopyClippingPath.jpg", jpegSettings);
}

Input

Apple.jpg

Apple.jpg

Output

CopyClippingPath.jpg

CopyClippingPath.jpg

Used APIs