|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arctorus.documents.Shape
com.arctorus.documents.Picture
public final class Picture
Picture on a document page.
Method Summary | |
---|---|
float |
getBrightness()
Return image brightness. |
float |
getContrast()
Return image contrast. |
CropFormat |
getCropFormat()
Get image cropping properties. |
byte[] |
getData()
Get copy of image data as byte array. |
java.lang.String |
getFormatName()
Get image format or file extension e.g. |
void |
setBrightness(float brightness)
Set image brightness. |
void |
setContrast(float contrast)
Set image contrast. |
void |
setCropFormat(CropFormat cropFormat)
Set image cropping properties. |
void |
setData(java.io.InputStream inputStream)
Set image data from input stream. |
Methods inherited from class com.arctorus.documents.Shape |
---|
createCustomShape, createEllipse, createLine, createPicture, createRectangle, getAdjustmentList, getBounds, getFillFormat, getHyperlink, getLowerRightPoint, getRotation, getShapeType, getStrokeFormat, getTextBox, getUpperLeftPoint, hasHyperlink, isProtected, isReflectVertically, setBounds, setFillFormat, setHyperlink, setProtected, setReflectVertically, setRotation, setStrokeFormat |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setData(java.io.InputStream inputStream) throws java.io.IOException, DocumentException
inputStream
- input stream to read image from.
DocumentException
- in case image doesn't contain data or has unsupported image type.
java.io.IOException
public byte[] getData()
public java.lang.String getFormatName()
public CropFormat getCropFormat()
public void setCropFormat(CropFormat cropFormat)
cropFormat
- new image cropping properties.public float getBrightness()
public void setBrightness(float brightness)
brightness
- new image brightness. Must be in the range [-1..1].public float getContrast()
public void setContrast(float contrast)
contrast
- new image contrast. Must be in the range [-1..1].
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |