get_ImageType()

IZoomObject::get_ImageType() method

Gets the image type of a zoom object. Read ZoomImageType. Default value: Preview

virtual ZoomImageType Aspose::Slides::IZoomObject::get_ImageType()=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