|
|||||||||
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.
Method Summary | |
---|---|
TextFrame |
addTextFrame(java.lang.String text)
Add a new TextFrame to a shape. |
int |
getBrightness()
Returns the brightness (0-100%) of a picture. |
int |
getColorType()
Returns the type of a color transformation applied to a picture. |
int |
getContrast()
Returns the contrast (0-100%) of a picture. |
float |
getCropBottom()
Returns the number of percents of a real image height that are cropped off from the bottom of a picture. |
float |
getCropLeft()
Returns the number of percents of a real image width that are cropped off from the left of a picture. |
float |
getCropRight()
Returns the number of percents of a real image width that are cropped off from the right of a picture. |
float |
getCropTop()
Returns the number of percents of a real image height that are cropped off from the top of a picture. |
java.lang.String |
getPictureFileName()
Returns the file name of a linked picture. |
int |
getPictureId()
Returns the picture Id of a PictureFrame. |
RecolorTable |
getRecolor()
Returns the table of colors replacements for metafiles recoloring. |
java.awt.Color |
getTransparentColor()
Returns the transparent color of a picture. |
boolean |
isPictureLinked()
Determines whether the picture is linked to an 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 a 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 a real image height that are cropped off from the bottom of a picture. |
void |
setCropLeft(float value)
Sets the number of percents of a real image width that are cropped off from the left of a picture. |
void |
setCropRight(float value)
Sets the number of percents of a real image width that are cropped off from the right of a picture. |
void |
setCropTop(float value)
Sets the number of percents of a real image height that are cropped off from the top of a picture. |
void |
setPictureFileName(java.lang.String value)
Sets the file name of a linked picture. |
void |
setPictureId(int value)
Sets the picture Id of 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, getAnimationSettings, getConnectionSites, getConnectionSitesRaw, getFillFormat, getHeight, getLineFormat, getLink, getMasterShapeId, getName, getParent, getPlaceholder, getRotation, 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, zOrder |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 an image height cropped from the top.public float getCropBottom()
getCropBottom
in interface IPictureFrame
public void setCropBottom(float value)
setCropBottom
in interface IPictureFrame
value
- the percents of an image height cropped from the bottom.public float getCropLeft()
getCropLeft
in interface IPictureFrame
public void setCropLeft(float value)
setCropLeft
in interface IPictureFrame
value
- the percents of an image width cropped from the left.public float getCropRight()
getCropRight
in interface IPictureFrame
public void setCropRight(float value)
setCropRight
in interface IPictureFrame
value
- the percents of an image width cropped from the right.public java.awt.Color getTransparentColor()
getTransparentColor
in interface IPictureFrame
public void setTransparentColor(java.awt.Color value)
setTransparentColor
in interface IPictureFrame
value
- new transparent color of a picture.public int getBrightness()
getBrightness
in interface IPictureFrame
public void setBrightness(int value) throws PptPropertyException
setBrightness
in interface IPictureFrame
value
- new brightness value.
PptPropertyException
public int getContrast()
getContrast
in interface IPictureFrame
public void setContrast(int value) throws PptPropertyException
setContrast
in interface IPictureFrame
value
- new contrast value.
PptPropertyException
public int getColorType()
PictureColorType
.
getColorType
in interface IPictureFrame
public void setColorType(int value)
setColorType
in interface IPictureFrame
value
- new type of color transformation. See PictureColorType
.public RecolorTable getRecolor()
getRecolor
in interface IPictureFrame
public int getPictureId()
getPictureId
in interface IPictureFrame
public void setPictureId(int value)
setPictureId
in interface IPictureFrame
value
- new 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
- new file name.public TextFrame addTextFrame(java.lang.String text) throws PptEditException
addTextFrame
in class Shape
text
- default text of a new TextFrame.
PptEditException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |