public interface IZoomObject extends IGraphicalObject
Represents a Zoom object in a slide.
| Modifier and Type | Method and Description |
|---|---|
int |
getImageType()
Gets or sets the image type of a zoom object.
|
boolean |
getReturnToParent()
Gets or sets the navigation behavior in slideshow.
|
boolean |
getShowBackground()
Gets or sets value that specifies whether the Zoom will use the background of the destination slide.
|
float |
getTransitionDuration()
Gets or sets the duration of the transition between Zoom and slide.
|
IPPImage |
getZoomImage()
Gets or sets image for zoom object.
|
void |
setImageType(int value)
Gets or sets the image type of a zoom object.
|
void |
setReturnToParent(boolean value)
Gets or sets the navigation behavior in slideshow.
|
void |
setShowBackground(boolean value)
Gets or sets value that specifies whether the Zoom will use the background of the destination slide.
|
void |
setTransitionDuration(float value)
Gets or sets the duration of the transition between Zoom and slide.
|
void |
setZoomImage(IPPImage value)
Gets or sets image for zoom object.
|
getGraphicalObjectLockaddPlaceholder, getAlternativeText, getAlternativeTextTitle, getBasePlaceholder, getBlackWhiteMode, getConnectionSiteCount, getCustomData, getEffectFormat, getFillFormat, getFrame, getHeight, getHidden, getImage, getImage, getLineFormat, getName, getOfficeInteropShapeId, getParentGroup, getPlaceholder, getRawFrame, getRotation, getShapeLock, getThreeDFormat, getThumbnail, getThumbnail, getUniqueId, getWidth, getX, getY, getZOrderPosition, isDecorative, isGrouped, isTextHolder, removePlaceholder, setAlternativeText, setAlternativeTextTitle, setBlackWhiteMode, setDecorative, setFrame, setHeight, setHidden, setName, setRawFrame, setRotation, setWidth, setX, setY, writeAsSvg, writeAsSvggetSlidegetPresentationgetHyperlinkClick, getHyperlinkManager, getHyperlinkMouseOver, setHyperlinkClick, setHyperlinkMouseOverint getImageType()
Gets or sets the image type of a zoom object.
Read/write ZoomImageType.
Default value: Preview
This example demonstrates changing Image Type to Preview value. In this case the current image of a Zoom object changes to slide image:Presentation pres = new Presentation("pres.pptx"); try { IPPImage image = pres.getImages().addImage(Files.readAllBytes(Paths.get("image.png"))); IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1), image); zoomFrame.setImageType(ZoomImageType.Preview); } catch(IOException e) { } finally { if (pres != null) pres.dispose(); }
void setImageType(int value)
Gets or sets the image type of a zoom object.
Read/write ZoomImageType.
Default value: Preview
This example demonstrates changing Image Type to Preview value. In this case the current image of a Zoom object changes to slide image:Presentation pres = new Presentation("pres.pptx"); try { IPPImage image = pres.getImages().addImage(Files.readAllBytes(Paths.get("image.png"))); IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1), image); zoomFrame.setImageType(ZoomImageType.Preview); } catch(IOException e) { } finally { if (pres != null) pres.dispose(); }
boolean getReturnToParent()
Gets or sets the navigation behavior in slideshow. Read/write boolean. Default value: false
Example:Presentation pres = new Presentation("pres.pptx"); try { IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1)); zoomFrame.setReturnToParent(true); } finally { if (pres != null) pres.dispose(); }
void setReturnToParent(boolean value)
Gets or sets the navigation behavior in slideshow. Read/write boolean. Default value: false
Example:Presentation pres = new Presentation("pres.pptx"); try { IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1)); zoomFrame.setReturnToParent(true); } finally { if (pres != null) pres.dispose(); }
boolean getShowBackground()
Gets or sets value that specifies whether the Zoom will use the background of the destination slide. Read/write boolean. Default value: true
The example demonstrates removing the background of an image of a Zoom object:Presentation pres = new Presentation("pres.pptx"); try { IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1)); zoomFrame.setShowBackground(false); } finally { if (pres != null) pres.dispose(); }
void setShowBackground(boolean value)
Gets or sets value that specifies whether the Zoom will use the background of the destination slide. Read/write boolean. Default value: true
The example demonstrates removing the background of an image of a Zoom object:Presentation pres = new Presentation("pres.pptx"); try { IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1)); zoomFrame.setShowBackground(false); } finally { if (pres != null) pres.dispose(); }
IPPImage getZoomImage()
Gets or sets image for zoom object.
Read/write IPPImage.
The example demonstrates changing an image of a Zoom object:Presentation pres = new Presentation("pres.pptx"); try { IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1)); IPPImage image = pres.getImages().addImage(Files.readAllBytes(Paths.get("image.png"))); zoomFrame.setImage(image); } catch(IOException e) { } finally { if (pres != null) pres.dispose(); }
void setZoomImage(IPPImage value)
Gets or sets image for zoom object.
Read/write IPPImage.
The example demonstrates changing an image of a Zoom object:Presentation pres = new Presentation("pres.pptx"); try { IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1)); IPPImage image = pres.getImages().addImage(Files.readAllBytes(Paths.get("image.png"))); zoomFrame.setImage(image); } catch(IOException e) { } finally { if (pres != null) pres.dispose(); }
float getTransitionDuration()
Gets or sets the duration of the transition between Zoom and slide. Read/write float. Default value: 1.0f
the example demonstrates changing the duration of the transition between Zoom and slide:Presentation pres = new Presentation("pres.pptx"); try { IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1)); zoomFrame.setTransitionDuration(2.5f); } finally { if (pres != null) pres.dispose(); }
void setTransitionDuration(float value)
Gets or sets the duration of the transition between Zoom and slide. Read/write float. Default value: 1.0f
the example demonstrates changing the duration of the transition between Zoom and slide:Presentation pres = new Presentation("pres.pptx"); try { IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1)); zoomFrame.setTransitionDuration(2.5f); } finally { if (pres != null) pres.dispose(); }
Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.