Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate


com.aspose.cells
Class Picture

java.lang.Object
  extended by com.aspose.cells.Shape
      extended by com.aspose.cells.Picture

public class Picture
extends Shape

Encapsulates the object that represents a single picture in a spreadsheet.


Method Summary
 float getCropFromBottom()
          Gets the bottom cropping information.
 float getCropFromLeft()
          Gets the left cropping information.
 float getCropFromRight()
          Gets the right cropping information.
 float getCropFromTop()
          Gets the top cropping information.
 byte[] getData()
          Gets the data of the picture.
 int getHeightScale()
          Gets the height scale of picture(in unit of 1/100)
 int getImageFormat()
          Gets the image format of the picture.
 int getOriginalHeight()
          Gets the original height of picture, in unit of pixel.
 double getOriginalHeightCM()
          Gets the original height of picture, in unit of centimeters.
 float getOriginalHeightInch()
          Gets the original height of picture, in unit of inches.
 int getOriginalWidth()
          Gets the original width of picture, in unit of pixel.
 double getOriginalWidthCM()
          Gets the original width of picture, in unit of centimeters.
 float getOriginalWidthInch()
          Gets the original width of picture, in unit of inches.
 int getWidthScale()
          Gets the width scale of picture(in unit of 1/100)
 void setCropFromBottom(float cropValue)
          Sets the bottom cropping information.
 void setCropFromLeft(float cropValue)
          Sets the left cropping information.
 void setCropFromRight(float cropValue)
          Sets the right cropping information.
 void setCropFromTop(float cropValue)
          Sets the top cropping information.
 
Methods inherited from class com.aspose.cells.Shape
addHyperlink, getCharacters, getFill, getFont, getGroup, getHeight, getHeightCM, getHeightInch, getHeightInChart, getHyperlink, getLeft, getLeftCM, getLeftInch, getLeftInChart, getLine, getLinkedCell, getLowerRightColumn, getLowerRightRow, getName, getOrientation, getPlacement, getRotation, getText, getTextHorizontalAlignment, getTextVerticalAlignment, getTop, getTopCM, getTopInch, getTopInChart, getType, getUpperLeftColumn, getUpperLeftRow, getWidth, getWidthCM, getWidthInch, getWidthInChart, getZOrderPosition, hasLine, isFilled, isFlippedHorizontally, isFlippedVertically, isLockAspectRatio, isLocked, isPrintable, move, move, moveToCenter, setCharacters, setFilled, setFlippedHorizontally, setFlippedVertically, setFont, setHasLine, setHeight, setHeightCM, setHeightInch, setHeightInChart, setLeft, setLeftCM, setLeftInch, setLeftInChart, setLeftPosition, setLeftPositionInPixel, setLinkedCell, setLockAspectRatio, setLocked, setName, setOrientation, setPlacement, setPrintable, setRotation, setText, setTextHorizontalAlignment, setTextVerticalAlignment, setTop, setTopCM, setTopInch, setTopInChart, setTopPosition, setTopPositionInPixel, setUpperLeftColumn, setUpperLeftRow, setWidth, setWidthCM, setWidthInch, setWidthInChart
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getWidthScale

public int getWidthScale()
Gets the width scale of picture(in unit of 1/100)

Returns:
the width scale of picture

getHeightScale

public int getHeightScale()
Gets the height scale of picture(in unit of 1/100)

Returns:
the height scale of picture

getOriginalWidth

public int getOriginalWidth()
Gets the original width of picture, in unit of pixel.

Returns:
the original width of picture.

getOriginalHeight

public int getOriginalHeight()
Gets the original height of picture, in unit of pixel.

Returns:
the original height of picture.

getOriginalWidthCM

public double getOriginalWidthCM()
Gets the original width of picture, in unit of centimeters.

Returns:
the original width of picture.

getOriginalHeightCM

public double getOriginalHeightCM()
Gets the original height of picture, in unit of centimeters.

Returns:
the original height of picture.

getOriginalWidthInch

public float getOriginalWidthInch()
Gets the original width of picture, in unit of inches.

Returns:
the original width of picture.

getOriginalHeightInch

public float getOriginalHeightInch()
Gets the original height of picture, in unit of inches.

Returns:
the original height of picture.

getCropFromTop

public float getCropFromTop()
Gets the top cropping information.

Returns:
the ratio of cropped part to total image height.

setCropFromTop

public void setCropFromTop(float cropValue)
Sets the top cropping information.

Parameters:
cropValue - the ratio of cropped part to total image height.

getCropFromLeft

public float getCropFromLeft()
Gets the left cropping information.

Returns:
the ratio of cropped part to total image width.

setCropFromLeft

public void setCropFromLeft(float cropValue)
Sets the left cropping information.

Parameters:
cropValue - the ratio of cropped part to total image width.

getCropFromRight

public float getCropFromRight()
Gets the right cropping information.

Returns:
the ratio of cropped part to total image width.

setCropFromRight

public void setCropFromRight(float cropValue)
Sets the right cropping information.

Parameters:
cropValue - the ratio of cropped part to total image width.

getCropFromBottom

public float getCropFromBottom()
Gets the bottom cropping information.

Returns:
the ratio of cropped part to total image height.

setCropFromBottom

public void setCropFromBottom(float cropValue)
Sets the bottom cropping information.

Parameters:
cropValue - the ratio of cropped part to total image height.

getData

public byte[] getData()
Gets the data of the picture.

Returns:
the data of the picture.

getImageFormat

public int getImageFormat()
Gets the image format of the picture.

Returns:
image format of the image data of this shape. If this shape has no image data, return ImageFormat.UNKNOWN.
See Also:
ImageFormat