com.aspose.slides
Class PictureFrame

java.lang.Object
  extended by com.aspose.slides.Shape
      extended by com.aspose.slides.PictureFrame
Direct Known Subclasses:
AudioFrame, OleObjectFrame, VideoFrame

public class PictureFrame
extends Shape

Represents a PictureFrame shape.


Method Summary
 TextFrame addTextFrame(java.lang.String text)
           Adds a new TextFrame to a shape.
 byte getBrightness()
           Returns or sets the brightness (0-100%) of a picture.
 int getColorType()
           Returns or sets the type of color transformation applied to a picture.
 byte getContrast()
           Returns or sets the contrast (0-100%) of a picture.
 double getCropBottom()
           Returns or sets the number of percents of real image height that are cropped off the bottom of the picture.
 double getCropLeft()
           Returns or sets the number of percents of real image width that are cropped off the left of the picture.
 double getCropRight()
           Returns or sets the number of percents of real image width that are cropped off the right of the picture.
 double getCropTop()
           Returns or sets the number of percents of real image height that are cropped off the top of the picture.
 java.lang.String getPictureFileName()
           Returns or sets file name of a linked picture.
 int getPictureId()
           Returns or sets the picture id for a PictureFrame.
 boolean getPictureLinked()
           Determines whether the picture is linked to external file.
 RecolorTable getRecolor()
           Returns the table of colors replacements for recoloring metafiles.
 java.awt.Color getTransparentColor()
           
 boolean isPictureLinked()
          Deprecated. 
 void serialize(java.io.OutputStream stream)
           
 void setBrightness(byte value)
           
 void setColorType(int value)
           
 void setContrast(byte value)
           
 void setCropBottom(double value)
           
 void setCropLeft(double value)
           
 void setCropRight(double value)
           
 void setCropTop(double value)
           
 void setPictureFileName(java.lang.String value)
           
 void setPictureId(int value)
           
 void setTransparentColor(java.awt.Color value)
           
 
Methods inherited from class com.aspose.slides.Shape
addLink, clearLink, createShapeElements, createShapeElements, getAlternativeText, getAnimationSettings, getConnectionSites, getConnectionSitesRaw, getFillFormat, getFlipH, getFlipHorizontal, getFlipV, getFlipVertical, getHeight, getHidden, getLineFormat, getLink, getMasterShapeId, getName, getParent, getParentSlide, getPlaceholder, getProtection, getRotation, getShadowFormat, getShapeId, getShapeRectangle, getTags, getTextFrame, getThreeDFormat, getWidth, getX, getY, getZOrderPosition, hasExternalData, isMasterTextHolder, isTextHolder, setAlternativeText, setFlipH, setFlipHorizontal, setFlipV, setFlipVertical, setHeight, setHidden, setName, setProtection, setRotation, setWidth, setX, setY, zOrder
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

serialize

public void serialize(java.io.OutputStream stream)
Overrides:
serialize in class Shape

getCropTop

public double getCropTop()

Returns or sets the number of percents of real image height that are cropped off the top of the picture. Read/write double.


setCropTop

public void setCropTop(double value)

getCropBottom

public double getCropBottom()

Returns or sets the number of percents of real image height that are cropped off the bottom of the picture. Read/write double.


setCropBottom

public void setCropBottom(double value)

getCropLeft

public double getCropLeft()

Returns or sets the number of percents of real image width that are cropped off the left of the picture. Read/write double.


setCropLeft

public void setCropLeft(double value)

getCropRight

public double getCropRight()

Returns or sets the number of percents of real image width that are cropped off the right of the picture. Read/write double.


setCropRight

public void setCropRight(double value)

getTransparentColor

public java.awt.Color getTransparentColor()

setTransparentColor

public void setTransparentColor(java.awt.Color value)

getBrightness

public byte getBrightness()

Returns or sets the brightness (0-100%) of a picture. Read/write byte.


setBrightness

public void setBrightness(byte value)

getContrast

public byte getContrast()

Returns or sets the contrast (0-100%) of a picture. Read/write byte.


setContrast

public void setContrast(byte value)

getColorType

public int getColorType()

Returns or sets the type of color transformation applied to a picture. Read/write PictureColorType.


setColorType

public void setColorType(int value)

getRecolor

public RecolorTable getRecolor()

Returns the table of colors replacements for recoloring metafiles. Read-only RecolorTable.


getPictureId

public int getPictureId()

Returns or sets the picture id for a PictureFrame. Read/write int.


setPictureId

public void setPictureId(int value)

getPictureLinked

public boolean getPictureLinked()

Determines whether the picture is linked to external file. Read-only bool.


isPictureLinked

@Deprecated
public boolean isPictureLinked()
Deprecated. 

Determines whether the picture is linked to external file. Read-only bool.


getPictureFileName

public java.lang.String getPictureFileName()

Returns or sets file name of a linked picture. Read/write string.


setPictureFileName

public void setPictureFileName(java.lang.String value)

addTextFrame

public TextFrame addTextFrame(java.lang.String text)

Adds a new TextFrame to a shape. If shape already has TextFrame then do nothing.

Overrides:
addTextFrame in class Shape
Parameters:
text - Default text for a new TextFrame.