DeletePictureCroppedAreas()

PictureFillFormat::DeletePictureCroppedAreas() method

Delete cropped areas of the fill Picture.

System::SharedPtr<IPPImage> Aspose::Slides::PictureFillFormat::DeletePictureCroppedAreas() override

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.

System::SharedPtr<Presentation> presentation = System::MakeObject<Presentation>(u"demo.pptx");
System::SharedPtr<ISlide> slide = presentation->get_Slide(0);

// Gets the PictureFrame
System::SharedPtr<IPictureFrame> picFrame = System::AsCast<IPictureFrame>(slide->get_Shape(0));

// Deletes cropped areas of the PictureFrame image
System::SharedPtr<IPPImage> croppedImage = picFrame->get_PictureFormat()->DeletePictureCroppedAreas();

See Also