Picture

Overview

Picture is a class in Aspose.Slides FOSS for Java. Inherits from: ISlidesPicture, ISlideComponent, IPresentationComponent.

Represents a picture in a presentation.

This class provides 14 methods for working with Picture objects in Java programs. Available methods include: asIPresentationComponent, asISlideComponent, computeRelativePath, flushPendingBlipImages, getImage, getLinkPathLong, getPresentation, getSlide, initInternal, setBlipImage, setImage, setLinkPathLong. All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package. Properties: image, linkPathLong, presentation, slide.

Properties

NameTypeAccessDescription
imageIPPImageReadGets the image.
linkPathLongStringReadGets the link path long.
presentationIPresentationReadGets the presentation.
slideIBaseSlideReadGets the slide.

Methods

SignatureDescription
initInternal(blipElement: Element, parentSlide: IBaseSlide, parentPresentation: IPresentation)Internal initialisation with the {@code <a:blip>} XML element.
initInternal(blipElement: Element, parentSlide: IBaseSlide)Internal initialisation with the {@code <a:blip>} XML element (no presentation context).
initInternal(blipElement: Element, opcPackage: OpcPackage, slidePartName: String, parentSlide: IBaseSlide)Internal initialisation with the {@code <a:blip>} XML element and OPC package context.
asIPresentationComponent()IPresentationComponent
getImage()IPPImageReturns the image.
setImage(value: IPPImage)Sets the image value.
getLinkPathLong()StringReturns the link path long.
setLinkPathLong(value: String)Sets the link path long value.
getPresentation()IPresentationReturns the presentation.
getSlide()IBaseSlideReturns the slide.
asISlideComponent()ISlideComponent
flushPendingBlipImages(element: Element, parentSlide: IBaseSlide)Resolves any pending image references on {@code <a:blip>} elements within the given XML tree.
setBlipImage(blipEl: Element, opcPackage: OpcPackage, slidePartName: String, ppImage: IPPImage)Sets the image relationship on a blip element using OPC relationship management.
computeRelativePath(fromDir: String, toPath: String)StringComputes a relative path from a directory to a target path.

See Also