add_zoom_frame method

add_zoom_frame

Creates a new Zoom frame and adds it to the end of the shape collection.

Returns

The newly created IZoomFrame.

def add_zoom_frame(self, x, y, width, height, slide):
    ...
ParameterTypeDescription
xfloatThe x-coordinate of the new Zoom frame, in points.
yfloatThe y-coordinate of the new Zoom frame, in points.
widthfloatThe width of the new Zoom frame, in points.
heightfloatThe height of the new Zoom frame, in points.
slideISlideThe ISlide referenced by the Zoom frame;

must belong to this presentation.

Examples

This example demonstrates adding a Zoom object to the end of a collection (assume that there are at least two slides in the “Presentation.pptx” presentation):

Exceptions

ExceptionDescription
RuntimeError(Proxy error(ArgumentException))Thrown if the referenced slide does not belong to the current presentation.

add_zoom_frame

Creates a new Zoom frame and adds it to the end of the shape collection.

Returns

The newly created IZoomFrame.

def add_zoom_frame(self, x, y, width, height, slide, image):
    ...
ParameterTypeDescription
xfloatThe x-coordinate of the new Zoom frame, in points.
yfloatThe y-coordinate of the new Zoom frame, in points.
widthfloatThe width of the new Zoom frame, in points.
heightfloatThe height of the new Zoom frame, in points.
slideISlideThe ISlide referenced by the Zoom frame;

must belong to this presentation.
imageIPPImageThe image for the referenced slide IPPImage.

Examples

This example demonstrates adding a Zoom object to the end of a collection (assume that there are at least two slides in the “Presentation.pptx” presentation):

Exceptions

ExceptionDescription
RuntimeError(Proxy error(ArgumentException))Thrown if the referenced slide does not belong to the current presentation.

See Also