PictureFrame

Inheritance: java.lang.Object, com.aspose.slides.Shape, com.aspose.slides.GeometryShape

All Implemented Interfaces: com.aspose.slides.IPictureFrame

public class PictureFrame extends GeometryShape implements IPictureFrame

Represents a frame with a picture inside.

Methods

Method Description
getPictureFrameLock() Returns shape’s locks.
getShapeType()
setShapeType(int value)
getPictureFormat() Returns the PictureFillFormat object for a picture frame.
getRelativeScaleHeight() Returns or sets the scale of height(relative to original picture size) of the picture frame.
setRelativeScaleHeight(float value) Returns or sets the scale of height(relative to original picture size) of the picture frame.
getRelativeScaleWidth() Returns or sets the scale of width (relative to original picture size) of the picture frame.
setRelativeScaleWidth(float value) Returns or sets the scale of width (relative to original picture size) of the picture frame.

getPictureFrameLock()

public final IPictureFrameLock getPictureFrameLock()

Returns shape’s locks. Read-only IPictureFrameLock.

Returns: IPictureFrameLock

getShapeType()

public int getShapeType()

Returns or sets the AutoShape type for a PictureFrame. There are allowable all items of the set ShapeType, except all sorts of lines:

ShapeType.Line,

ShapeType.StraightConnector1,

ShapeType.BentConnector2,

ShapeType.BentConnector3,

ShapeType.BentConnector4,

ShapeType.BentConnector5,

ShapeType.CurvedConnector2,

ShapeType.CurvedConnector3,

ShapeType.CurvedConnector4,

ShapeType.CurvedConnector5.

Read/write ShapeType.

Returns: int

setShapeType(int value)

public void setShapeType(int value)

Returns or sets the AutoShape type for a PictureFrame. There are allowable all items of the set ShapeType, except all sorts of lines:

ShapeType.Line,

ShapeType.StraightConnector1,

ShapeType.BentConnector2,

ShapeType.BentConnector3,

ShapeType.BentConnector4,

ShapeType.BentConnector5,

ShapeType.CurvedConnector2,

ShapeType.CurvedConnector3,

ShapeType.CurvedConnector4,

ShapeType.CurvedConnector5.

Read/write ShapeType.

Parameters:

Parameter Type Description
value int

getPictureFormat()

public final IPictureFillFormat getPictureFormat()

Returns the PictureFillFormat object for a picture frame. Read-only IPictureFillFormat.

Returns: IPictureFillFormat

getRelativeScaleHeight()

public final float getRelativeScaleHeight()

Returns or sets the scale of height(relative to original picture size) of the picture frame. Value 1.0 corresponds to 100%. Read/write ``` float ```.

Returns: float

setRelativeScaleHeight(float value)

public final void setRelativeScaleHeight(float value)

Returns or sets the scale of height(relative to original picture size) of the picture frame. Value 1.0 corresponds to 100%. Read/write ``` float ```.

Parameters:

Parameter Type Description
value float

getRelativeScaleWidth()

public final float getRelativeScaleWidth()

Returns or sets the scale of width (relative to original picture size) of the picture frame. Value 1.0 corresponds to 100%. Read/write ``` float ```.

Returns: float

setRelativeScaleWidth(float value)

public final void setRelativeScaleWidth(float value)

Returns or sets the scale of width (relative to original picture size) of the picture frame. Value 1.0 corresponds to 100%. Read/write ``` float ```.

Parameters:

Parameter Type Description
value float