|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.Shape
com.aspose.slides.PictureFrame
public class PictureFrame
Represents the PictureFrame shape.
Field Summary |
---|
Fields inherited from class com.aspose.slides.Shape |
---|
defaultConnectionPoints, emptyConnectionPoints, emptyShape, m_anchor, m_animationSettings, m_fillFormat, m_frame, m_lineFormat, m_link, m_nFSTVersion, m_options, m_parent, m_shadowFormat, m_shapesParent, m_tags, m_TextFrame, m_version |
Constructor Summary | |
---|---|
protected |
PictureFrame(Slide parent)
|
protected |
PictureFrame(Slide parent,
EsSpContainer frame)
|
Method Summary | |
---|---|
TextFrame |
addTextFrame(java.lang.String text)
Adds a new TextFrame to a shape. |
int |
getBrightness()
Returns the brightness (0-100%) of a picture. |
int |
getColorType()
Returns the type of color transformation applied to a picture. |
int |
getContrast()
Returns the contrast (0-100%) of a picture. |
float |
getCropBottom()
Returns the number of percents of real image height that are cropped off the bottom of the picture. |
float |
getCropLeft()
Returns the number of percents of real image width that are cropped off the left of the picture. |
float |
getCropRight()
Returns the number of percents of real image width that are cropped off the right of the picture. |
float |
getCropTop()
Returns the number of percents of real image height that are cropped off the top of the picture. |
java.lang.String |
getPictureFileName()
Returns the file name of a linked picture. |
int |
getPictureId()
Returns the picture Id for a PictureFrame. |
RecolorTable |
getRecolor()
Returns the table of colors replacements for recoloring metafiles. |
java.awt.Color |
getTransparentColor()
Returns the transparent color of a picture. |
boolean |
isPictureLinked()
Determines whether the picture is linked to external file. |
void |
serialize(java.io.OutputStream stream)
Serializes a PictureFrame object to the stream. |
void |
setBrightness(int value)
Sets the brightness (0-100%) of a picture. |
void |
setColorType(int value)
Sets the type of color transformation applied to a picture. |
void |
setContrast(int value)
Sets the contrast (0-100%) of a picture. |
void |
setCropBottom(float value)
Sets the number of percents of real image height that are cropped off the bottom of the picture. |
void |
setCropLeft(float value)
Sets the number of percents of real image width that are cropped off the left of the picture. |
void |
setCropRight(float value)
Sets the number of percents of real image width that are cropped off the right of the picture. |
void |
setCropTop(float value)
Sets the number of percents of real image height that are cropped off the top of the picture. |
void |
setPictureFileName(java.lang.String value)
Sets the file name of a linked picture. |
void |
setPictureId(int value)
Sets the picture Id for a PictureFrame. |
void |
setTransparentColor(java.awt.Color value)
sets the transparent color of a picture. |
Methods inherited from class com.aspose.slides.Shape |
---|
addLink, clearLink, createShapeElements, createShapeElements, getAlternativeText, getAnchor, getAnimationSettings, getConnectionSites, getConnectionSitesRaw, getFillFormat, getFrame, getgeoBottom, getgeoRight, getHeight, getLineFormat, getLink, getMasterShapeId, getName, getOptions, getParent, getPlaceholder, getRotation, getRotation0_360, getShadowFormat, getShapeId, getShapeRectangle, getTags, getTextFrame, getThreeDFormat, getWidth, getX, getY, getZOrderPosition, hasExternalData, isFlipH, isFlipV, isHidden, isMasterTextHolder, isTextHolder, setAlternativeText, setFlipH, setFlipV, setHeight, setHidden, setName, setRotation, setWidth, setX, setY, shouldDraw, zOrder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected PictureFrame(Slide parent)
protected PictureFrame(Slide parent, EsSpContainer frame)
Method Detail |
---|
public void serialize(java.io.OutputStream stream) throws PptException
serialize
in class Shape
stream
- The stream to which the PictureFrame is to be serialized.
PptException
public float getCropTop()
getCropTop
in interface IPictureFrame
public void setCropTop(float value)
setCropTop
in interface IPictureFrame
value
- the percents of image height cropped from top.public float getCropBottom()
getCropBottom
in interface IPictureFrame
public void setCropBottom(float value)
setCropBottom
in interface IPictureFrame
value
- the percents of image height cropped from bottom.public float getCropLeft()
getCropLeft
in interface IPictureFrame
public void setCropLeft(float value)
setCropLeft
in interface IPictureFrame
value
- the percents of image width cropped from left.public float getCropRight()
getCropRight
in interface IPictureFrame
public void setCropRight(float value)
setCropRight
in interface IPictureFrame
value
- the percents of image width cropped from right.public java.awt.Color getTransparentColor()
getTransparentColor
in interface IPictureFrame
Color
.public void setTransparentColor(java.awt.Color value)
setTransparentColor
in interface IPictureFrame
value
- the transparent color of a picture. See Color
.public int getBrightness()
getBrightness
in interface IPictureFrame
public void setBrightness(int value) throws PptPropertyException
setBrightness
in interface IPictureFrame
value
- the brightness (0-100%) of a picture.
PptPropertyException
public int getContrast()
getContrast
in interface IPictureFrame
public void setContrast(int value) throws PptPropertyException
setContrast
in interface IPictureFrame
value
- the contrast (0-100%) of a picture.
PptPropertyException
public int getColorType()
getColorType
in interface IPictureFrame
PictureColorType
.public void setColorType(int value)
setColorType
in interface IPictureFrame
value
- the type of color transformation applied to a picture. See
PictureColorType
.public RecolorTable getRecolor()
getRecolor
in interface IPictureFrame
RecolorTable
.public int getPictureId()
getPictureId
in interface IPictureFrame
public void setPictureId(int value)
setPictureId
in interface IPictureFrame
value
- the picture Id.public boolean isPictureLinked()
isPictureLinked
in interface IPictureFrame
public java.lang.String getPictureFileName()
getPictureFileName
in interface IPictureFrame
public void setPictureFileName(java.lang.String value)
setPictureFileName
in interface IPictureFrame
value
- the file name of a linked picture.public TextFrame addTextFrame(java.lang.String text) throws PptEditException
addTextFrame
in class Shape
text
- Default text for a new TextFrame.
PptEditException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |