com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class ZoomFrame

    • Method Detail

      • getImageType

        public final int getImageType()

        Gets or sets the image type of a zoom object. Read/write ZoomImageType. Default value: Preview


        Next example demonstrates changing Image Type to Preview value. 
         In this case current image of a Zoom object changes to slide image:
         
         IPPImage image = pres.getImages().addImage(imageBytes);
         IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1), image);
         zoomFrame.setImageType(ZoomImageType.Preview);
         


        Specifies whether the Zoom object is using the slide preview or a cover image.
        Specified by:
        getImageType in interface IZoomFrame
      • setImageType

        public final void setImageType(int value)

        Gets or sets the image type of a zoom object. Read/write ZoomImageType. Default value: Preview


        Next example demonstrates changing Image Type to Preview value. 
         In this case current image of a Zoom object changes to slide image:
         
         IPPImage image = pres.getImages().addImage(imageBytes);
         IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1), image);
         zoomFrame.setImageType(ZoomImageType.Preview);
         


        Specifies whether the Zoom object is using the slide preview or a cover image.
        Specified by:
        setImageType in interface IZoomFrame
      • getReturnToParent

        public final boolean getReturnToParent()

        Gets or sets the navigation behavior in slideshow. Read/write boolean. Default value: false


        Example:
         
         IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1));
         zoomFrame.setReturnToParent(true);
         


        True value of the property specifies return to parent navigation behavior in slideshow.
        Specified by:
        getReturnToParent in interface IZoomFrame
      • setReturnToParent

        public final void setReturnToParent(boolean value)

        Gets or sets the navigation behavior in slideshow. Read/write boolean. Default value: false


        Example:
         
         IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1));
         zoomFrame.setReturnToParent(true);
         


        True value of the property specifies return to parent navigation behavior in slideshow.
        Specified by:
        setReturnToParent in interface IZoomFrame
      • getTargetSlide

        public final ISlide getTargetSlide()

        Gets or sets the slide object that the Slide Zoom object links to. Read/write ISlide.


        Next example demonstrates changing target slide and creates new image for the zoom object:
         
         IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1));
         zoomFrame.setTargetSlide(pres.getSlides().get_Item(2));
         
        Specified by:
        getTargetSlide in interface IZoomFrame
      • setTargetSlide

        public final void setTargetSlide(ISlide value)

        Gets or sets the slide object that the Slide Zoom object links to. Read/write ISlide.


        Next example demonstrates changing target slide and creates new image for the zoom object:
         
         IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1));
         zoomFrame.setTargetSlide(pres.getSlides().get_Item(2));
         
        Specified by:
        setTargetSlide in interface IZoomFrame
      • getShowBackground

        public final 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:
         
         IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1));
         zoomFrame.setShowBackground(false);
         
        Specified by:
        getShowBackground in interface IZoomFrame
      • setShowBackground

        public final 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:
         
         IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1));
         zoomFrame.setShowBackground(false);
         
        Specified by:
        setShowBackground in interface IZoomFrame
      • getImage

        public final IPPImage getImage()

        Gets or sets image for zoom object. Read/write IPPImage.


        the example demonstrates changing an image of a Zoom object:
         
         IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1));
         IPPImage image = pres.getImages().addImage(imageBytes;
         zoomFrame.setImage(image);
         
        Specified by:
        getImage in interface IZoomFrame
      • setImage

        public final void setImage(IPPImage value)

        Gets or sets image for zoom object. Read/write IPPImage.


        the example demonstrates changing an image of a Zoom object:
         
         IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1));
         IPPImage image = pres.getImages().addImage(imageBytes;
         zoomFrame.setImage(image);
         
        Specified by:
        setImage in interface IZoomFrame
      • getTransitionDuration

        public final 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:
         
         IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1));
         zoomFrame.setTransitionDuration(2.5f);
         


        If not specified (TransitionDur = 0), it will use the destination slide transition and the timings associated with that transition.
        Specified by:
        getTransitionDuration in interface IZoomFrame
      • setTransitionDuration

        public final 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:
         
         IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1));
         zoomFrame.setTransitionDuration(2.5f);
         


        If not specified (TransitionDur = 0), it will use the destination slide transition and the timings associated with that transition.
        Specified by:
        setTransitionDuration in interface IZoomFrame