Package com.independentsoft.office.vml
Class Image
java.lang.Object
com.independentsoft.office.vml.Image
- All Implemented Interfaces:
IContentElement,IPicture,IGroupElement,IShapeElement,IVmlElement
The Class Image.
-
Constructor Summary
ConstructorsConstructorDescriptionImage()Instantiates a new image.Image(InternalXMLStreamReader reader)Instantiates a new image.Instantiates a new image.Instantiates a new image.Image(String fileName, InputStream stream)Instantiates a new image. -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the alternative image reference.Gets the black recoloring color.Gets the bottom crop.Gets the brightness.byte[]Gets the chroma key.Gets the embedded object id.Gets the embossed color.Gets the gamma correction.Gets the hyperlink target relationship id.getID()Gets the id.Gets the intensity.Gets the left crop.Gets the movie reference.Gets the right crop.Gets the source.getTitle()Gets the title.Gets the top crop.booleanChecks if is bilevel.booleanChecks if is detect mouse click.booleanChecks if is grayscale.voidLoad.voidLoad.voidload(String fileName, InputStream inputStream)Load.voidsave(OutputStream outputStream)voidvoidvoidsetAlternativeImageReference(String alternativeImageReference)Sets the alternative image reference.voidsetBilevel(boolean bilevel)Sets the bilevel.voidsetBlackRecoloringColor(String blackRecoloringColor)Sets the black recoloring color.voidsetBottomCrop(String bottomCrop)Sets the bottom crop.voidsetBrightness(String brightness)Sets the brightness.voidsetBuffer(byte[] buffer)voidsetChromaKey(String chromaKey)Sets the chroma key.voidsetDetectMouseClick(boolean detectMouseClick)Sets the detect mouse click.voidsetEmbeddedObjectID(String embeddedObjectID)Sets the embedded object id.voidsetEmbossedColor(String embossedColor)Sets the embossed color.voidsetFileName(String fileName)Sets the file name.voidsetGammaCorrection(String gammaCorrection)Sets the gamma correction.voidsetGrayscale(boolean grayscale)Sets the grayscale.voidsetHyperlinkTargetRelationshipID(String hyperlinkTargetRelationshipID)Sets the hyperlink target relationship id.voidSets the id.voidsetIntensity(String intensity)Sets the intensity.voidsetLeftCrop(String leftCrop)Sets the left crop.voidsetMovieReference(String movieReference)Sets the movie reference.voidsetRightCrop(String rightCrop)Sets the right crop.voidSets the source.voidSets the title.voidsetTopCrop(String topCrop)Sets the top crop.toString()
-
Constructor Details
-
Image
public Image()Instantiates a new image. -
Image
Instantiates a new image.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
Image
Instantiates a new image.- Parameters:
filePath- the file path- Throws:
IOException- Signals that an I/O exception has occurred.
-
Image
Instantiates a new image.- Parameters:
fileName- the file namestream- the stream- Throws:
IOException- Signals that an I/O exception has occurred.
-
Image
Instantiates a new image.- Parameters:
fileName- the file namebuffer- the buffer
-
-
Method Details
-
load
Load.- Parameters:
filePath- the file path- Throws:
IOException- Signals that an I/O exception has occurred.
-
load
Load.- Parameters:
fileName- the file nameinputStream- the input stream- Throws:
IOException- Signals that an I/O exception has occurred.
-
load
Load.- Parameters:
fileName- the file namebuffer- the buffer
-
save
- Specified by:
savein interfaceIPicture- Throws:
IOException
-
save
- Specified by:
savein interfaceIPicture- Throws:
IOException
-
save
- Specified by:
savein interfaceIPicture- Throws:
IOException
-
getInputStream
- Specified by:
getInputStreamin interfaceIPicture
-
getContentElements
- Specified by:
getContentElementsin interfaceIContentElement
-
clone
- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIGroupElement- Specified by:
clonein interfaceIPicture- Specified by:
clonein interfaceIShapeElement- Specified by:
clonein interfaceIVmlElement- Overrides:
clonein classObject
-
toString
-
getAlternativeImageReference
Gets the alternative image reference.- Returns:
- the alternative image reference
-
setAlternativeImageReference
Sets the alternative image reference.- Parameters:
alternativeImageReference- the new alternative image reference
-
isBilevel
public boolean isBilevel()Checks if is bilevel.- Returns:
- true, if is bilevel
-
setBilevel
public void setBilevel(boolean bilevel)Sets the bilevel.- Parameters:
bilevel- the new bilevel
-
getBrightness
Gets the brightness.- Returns:
- the brightness
-
setBrightness
Sets the brightness.- Parameters:
brightness- the new brightness
-
getChromaKey
Gets the chroma key.- Returns:
- the chroma key
-
setChromaKey
Sets the chroma key.- Parameters:
chromaKey- the new chroma key
-
getBottomCrop
Gets the bottom crop.- Returns:
- the bottom crop
-
setBottomCrop
Sets the bottom crop.- Parameters:
bottomCrop- the new bottom crop
-
getLeftCrop
Gets the left crop.- Returns:
- the left crop
-
setLeftCrop
Sets the left crop.- Parameters:
leftCrop- the new left crop
-
getRightCrop
Gets the right crop.- Returns:
- the right crop
-
setRightCrop
Sets the right crop.- Parameters:
rightCrop- the new right crop
-
getTopCrop
Gets the top crop.- Returns:
- the top crop
-
setTopCrop
Sets the top crop.- Parameters:
topCrop- the new top crop
-
isDetectMouseClick
public boolean isDetectMouseClick()Checks if is detect mouse click.- Returns:
- true, if is detect mouse click
-
setDetectMouseClick
public void setDetectMouseClick(boolean detectMouseClick)Sets the detect mouse click.- Parameters:
detectMouseClick- the new detect mouse click
-
getEmbossedColor
Gets the embossed color.- Returns:
- the embossed color
-
setEmbossedColor
Sets the embossed color.- Parameters:
embossedColor- the new embossed color
-
getIntensity
Gets the intensity.- Returns:
- the intensity
-
setIntensity
Sets the intensity.- Parameters:
intensity- the new intensity
-
getGammaCorrection
Gets the gamma correction.- Returns:
- the gamma correction
-
setGammaCorrection
Sets the gamma correction.- Parameters:
gammaCorrection- the new gamma correction
-
isGrayscale
public boolean isGrayscale()Checks if is grayscale.- Returns:
- true, if is grayscale
-
setGrayscale
public void setGrayscale(boolean grayscale)Sets the grayscale.- Parameters:
grayscale- the new grayscale
-
getHyperlinkTargetRelationshipID
Gets the hyperlink target relationship id.- Returns:
- the hyperlink target relationship id
-
setHyperlinkTargetRelationshipID
Sets the hyperlink target relationship id.- Parameters:
hyperlinkTargetRelationshipID- the new hyperlink target relationship id
-
getID
Gets the id.- Returns:
- the id
-
setID
Sets the id.- Parameters:
id- the new id
-
getMovieReference
Gets the movie reference.- Returns:
- the movie reference
-
setMovieReference
Sets the movie reference.- Parameters:
movieReference- the new movie reference
-
getEmbeddedObjectID
Gets the embedded object id.- Returns:
- the embedded object id
-
setEmbeddedObjectID
Sets the embedded object id.- Parameters:
embeddedObjectID- the new embedded object id
-
getBlackRecoloringColor
Gets the black recoloring color.- Returns:
- the black recoloring color
-
setBlackRecoloringColor
Sets the black recoloring color.- Parameters:
blackRecoloringColor- the new black recoloring color
-
getSource
Gets the source.- Returns:
- the source
-
setSource
Sets the source.- Parameters:
source- the new source
-
getTitle
Gets the title.- Returns:
- the title
-
setTitle
Sets the title.- Parameters:
title- the new title
-
getFileName
- Specified by:
getFileNamein interfaceIPicture
-
setFileName
Sets the file name.- Parameters:
fileName- the new file name
-
getBuffer
public byte[] getBuffer() -
setBuffer
public void setBuffer(byte[] buffer)
-