com.jxcell
Class PictureShape

java.lang.Object
  extended by com.jxcell.ShapeObj
      extended by com.jxcell.PictureShape

public class PictureShape
extends ShapeObj

This class represents a picture shape object.


Method Summary
 byte[] getPictureData()
          write picture image data to specified stream
 int getPictureType()
          get picture image data type
 
Methods inherited from class com.jxcell.ShapeObj
getBottom, getFormat, getLeft, getName, getNextShapeObj, getPos, getRight, getShapeObjFromGRObject, getTop, setFormat, setPosition
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPictureData

public byte[] getPictureData()
                      throws java.lang.Exception
write picture image data to specified stream

Returns:
image data
Throws:
java.lang.Exception - exception

getPictureType

public int getPictureType()
                   throws java.lang.Exception
get picture image data type

Returns:
image type -1 gif 5 jpg 6 png 7 dib
Throws:
java.lang.Exception - exception