DeletePictureCroppedAreas

PictureFillFormat.DeletePictureCroppedAreas 方法

删除填充图片的裁剪区域。

public IPPImage DeletePictureCroppedAreas()

返回值

裁剪后的图像,或在不需要裁剪时原始图像。

备注

此方法在裁剪时将 WMF/EMF 元文件转换为光栅 PNG 图像。

示例

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

    // 获取 PictureFrame
    IPictureFrame picFrame = slide.Shapes[0] as IPictureFrame;

    // 删除 PictureFrame 图像的裁剪区域
    IPPImage croppedImage = picFrame.PictureFormat.DeletePictureCroppedAreas();
}

另请参阅