Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Wiki  API  Corporate

com.aspose.powerpoint
Class PictureFrame

java.lang.Object
  extended by com.aspose.powerpoint.Shape
      extended by com.aspose.powerpoint.PictureFrame
Direct Known Subclasses:
OleObjectFrame

public class PictureFrame
extends Shape

Represents the PictureFrame shape.


Method Summary
 void 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.
 double getCropBottom()
          Returns the number of percents of real image height that are cropped off the bottom of the picture.
 double getCropLeft()
          Returns the number of percents of real image width that are cropped off the left of the picture.
 double getCropRight()
          Returns the number of percents of real image width that are cropped off the right of the picture.
 double getCropTop()
          Returns the number of percents of real image height that are cropped off the top of the 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.
 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(double value)
          Sets the number of percents of real image height that are cropped off the bottom of the picture.
 void setCropLeft(double value)
          Sets the number of percents of real image width that are cropped off the left of the picture.
 void setCropRight(double value)
          Sets the number of percents of real image width that are cropped off the right of the picture.
 void setCropTop(double value)
          Sets the number of percents of real image height that are cropped off the top of the 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.powerpoint.Shape
addLink, clearLink, getAlternativeText, getAnimationSettings, getFillFormat, getHeight, getLineFormat, getLink, getParent, getRotation, getTags, getTextFrame, getWidth, getX, getY, getZOrderPosition, isFlipH, isFlipV, isTextHolder, setAlternativeText, setFlipH, setFlipV, setHeight, setRotation, setWidth, setX, setY, zOrder
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCropTop

public double getCropTop()
Returns the number of percents of real image height that are cropped off the top of the picture.

Returns:
The percents of image height cropped from top.

setCropTop

public void setCropTop(double value)
Sets the number of percents of real image height that are cropped off the top of the picture.

Parameters:
value - the percents of image height cropped from top.

getCropBottom

public double getCropBottom()
Returns the number of percents of real image height that are cropped off the bottom of the picture.

Returns:
The percents of image height cropped from bottom.

setCropBottom

public void setCropBottom(double value)
Sets the number of percents of real image height that are cropped off the bottom of the picture.

Parameters:
value - the percents of image height cropped from bottom.

getCropLeft

public double getCropLeft()
Returns the number of percents of real image width that are cropped off the left of the picture.

Returns:
The percents of image width cropped from left.

setCropLeft

public void setCropLeft(double value)
Sets the number of percents of real image width that are cropped off the left of the picture.

Parameters:
value - the percents of image width cropped from left.

getCropRight

public double getCropRight()
Returns the number of percents of real image width that are cropped off the right of the picture.

Returns:
The percents of image width cropped from right.

setCropRight

public void setCropRight(double value)
Sets the number of percents of real image width that are cropped off the right of the picture.

Parameters:
value - the percents of image width cropped from right.

getTransparentColor

public java.awt.Color getTransparentColor()
Returns the transparent color of a picture.

Returns:
the transparent color of a picture. See Color.

setTransparentColor

public void setTransparentColor(java.awt.Color value)
sets the transparent color of a picture.

Parameters:
value - the transparent color of a picture. See Color.

getBrightness

public int getBrightness()
Returns the brightness (0-100%) of a picture.

Returns:
the brightness (0-100%) of a picture.

setBrightness

public void setBrightness(int value)
                   throws PptPropertyException
Sets the brightness (0-100%) of a picture.

Parameters:
value - the brightness (0-100%) of a picture.
Throws:
PptPropertyException

getContrast

public int getContrast()
Returns the contrast (0-100%) of a picture.

Returns:
the contrast (0-100%) of a picture.

setContrast

public void setContrast(int value)
                 throws PptPropertyException
Sets the contrast (0-100%) of a picture.

Parameters:
value - the contrast (0-100%) of a picture.
Throws:
PptPropertyException

getColorType

public int getColorType()
Returns the type of color transformation applied to a picture.

Returns:
the type of color transformation applied to a picture. See PictureColorType.

setColorType

public void setColorType(int value)
Sets the type of color transformation applied to a picture.

Parameters:
value - the type of color transformation applied to a picture. See PictureColorType.

getRecolor

public RecolorTable getRecolor()
Returns the table of colors replacements for recoloring metafiles.

Returns:
the table of colors replacements for recoloring metafiles. See RecolorTable.

getPictureId

public int getPictureId()
Returns the picture Id for a PictureFrame.

Returns:
The picture Id.

setPictureId

public void setPictureId(int value)
Sets the picture Id for a PictureFrame.

Parameters:
value - the picture Id.

addTextFrame

public void addTextFrame(java.lang.String text)
                  throws PptEditException
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.
Throws:
PptEditException