set_ImageType()

IZoomObject::set_ImageType(ZoomImageType) method

Sets the image type of a zoom object. Write ZoomImageType. Default value: Preview

virtual void Aspose::Slides::IZoomObject::set_ImageType(ZoomImageType value)=0

Remarks

Specifies whether the Zoom object is using the slide preview or a cover image.

This example demonstrates changing Image Type to Preview value. In this case the current image of a Zoom object changes to slide image:

auto pres = System::MakeObject<Presentation>(u"pres.pptx");
auto shapes = pres->get_Slides()->idx_get(0)->get_Shapes();

auto image = pres->get_Images()->AddImage(Image::FromFile(u"image.png"));
auto zoomFrame = shapes->AddZoomFrame(150.0f, 20.0f, 50.0f, 50.0f, pres->get_Slides()->idx_get(1), image);
zoomFrame->set_ImageType(ZoomImageType::Preview);

See Also