DeletePictureCroppedAreas
IPictureFillFormat.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();
}
另请参阅
- 接口 IPPImage
- 接口 IPictureFillFormat
- 命名空间 Aspose.Slides
- 程序集 Aspose.Slides