DeletePictureCroppedAreas

PictureFillFormat.DeletePictureCroppedAreas method

Delete cropped areas of the fill Picture.

public IPPImage DeletePictureCroppedAreas()

Return Value

Cropped image or origin image if cropping is not necessary.

Remarks

This method converts WMF/EMF metafiles to raster PNG image while cropping.

Examples

[C#]
using (Presentation presentation = new Presentation("demo.pptx"))
{
    ISlide slide = presentation.Slides[0];

    // Gets the PictureFrame
    IPictureFrame picFrame = slide.Shapes[0] as IPictureFrame;

    // Deletes cropped areas of the PictureFrame image
    IPPImage croppedImage = picFrame.PictureFormat.DeletePictureCroppedAreas();
}

See Also