Class Picture
java.lang.Object
com.independentsoft.office.drawing.GraphicObject
com.independentsoft.office.drawing.Picture
- All Implemented Interfaces:
IGroupElement,IContentElement,IPicture
The Class Picture.
-
Constructor Summary
ConstructorsConstructorDescriptionPicture()Instantiates a new picture.Picture(InternalXMLStreamReader reader)Instantiates a new picture.Instantiates a new picture.Instantiates a new picture.Picture(String fileName, InputStream stream)Instantiates a new picture. -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the alpha bi level effect.Gets the alpha inverse effect.Gets the alpha modulate effect.Gets the alpha modulate fixed effect.Gets the alpha replace effect.Gets the bi level effect.Gets the blur effect.byte[]Gets the color change effect.Gets the compression state.Gets the description.Gets the duotone effect.Gets the fill overlay effect.getID()Gets the id.Gets the locking.Gets the luminance effect.getName()Gets the name.Gets the shape properties.Gets the solid color replacement.Gets the source rectangle.Gets the stretch.getTile()Gets the tile.Gets the tint effect.booleanChecks if is alpha ceiling effect.booleanChecks if is alpha floor effect.booleanChecks if is gray scale effect.booleanisHidden()Checks if is hidden.voidLoad.voidLoad.voidload(String fileName, InputStream stream)Load.voidsave(OutputStream outputStream)voidvoidvoidsetAlphaBiLevelEffect(AlphaBiLevelEffect alphaBiLevelEffect)Sets the alpha bi level effect.voidsetAlphaCeilingEffect(boolean alphaCeilingEffect)Sets the alpha ceiling effect.voidsetAlphaFloorEffect(boolean alphaFloorEffect)Sets the alpha floor effect.voidsetAlphaInverseEffect(AlphaInverseEffect alphaInverseEffect)Sets the alpha inverse effect.voidsetAlphaModulateEffect(AlphaModulateEffect alphaModulateEffect)Sets the alpha modulate effect.voidsetAlphaModulateFixedEffect(AlphaModulateFixedEffect alphaModulateFixedEffect)Sets the alpha modulate fixed effect.voidsetAlphaReplaceEffect(AlphaReplaceEffect alphaReplaceEffect)Sets the alpha replace effect.voidsetBiLevelEffect(BiLevelEffect biLevelEffect)Sets the bi level effect.voidsetBlurEffect(BlurEffect blurEffect)Sets the blur effect.voidsetBuffer(byte[] buffer)voidsetColorChangeEffect(ColorChangeEffect colorChangeEffect)Sets the color change effect.voidsetCompressionState(BlipCompressionType compressionState)Sets the compression state.voidsetDescription(String description)Sets the description.voidsetDuotoneEffect(DuotoneEffect duotoneEffect)Sets the duotone effect.voidsetFileName(String fileName)Sets the file name.voidsetFillOverlayEffect(FillOverlayEffect fillOverlayEffect)Sets the fill overlay effect.voidsetGrayScaleEffect(boolean grayScaleEffect)Sets the gray scale effect.voidsetHidden(boolean isHidden)Sets the hidden.voidSets the id.voidsetLocking(PictureLocking locking)Sets the locking.voidsetLuminanceEffect(LuminanceEffect luminanceEffect)Sets the luminance effect.voidSets the name.voidsetSolidColorReplacement(SolidColorReplacement solidColorReplacement)Sets the solid color replacement.voidsetSourceRectangle(SourceRectangle sourceRectangle)Sets the source rectangle.voidsetStretch(Stretch tile)Sets the stretch.voidSets the tile.voidsetTintEffect(TintEffect tintEffect)Sets the tint effect.toString()
-
Constructor Details
-
Picture
public Picture()Instantiates a new picture. -
Picture
Instantiates a new picture.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
Picture
Instantiates a new picture.- Parameters:
filePath- the file path- Throws:
IOException- Signals that an I/O exception has occurred.
-
Picture
Instantiates a new picture.- Parameters:
fileName- the file namestream- the stream- Throws:
IOException- Signals that an I/O exception has occurred.
-
Picture
Instantiates a new picture.- Parameters:
fileName- the file namebuffer- the buffer
-
-
Method Details
-
getInputStream
- Specified by:
getInputStreamin interfaceIPicture
-
load
Load.- Parameters:
filePath- the file path- Throws:
IOException- Signals that an I/O exception has occurred.
-
load
Load.- Parameters:
fileName- the file namestream- the 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
-
getContentElements
- Specified by:
getContentElementsin interfaceIContentElement- Specified by:
getContentElementsin classGraphicObject
-
clone
- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIGroupElement- Specified by:
clonein interfaceIPicture- Specified by:
clonein classGraphicObject
-
toString
-
getAlphaBiLevelEffect
Gets the alpha bi level effect.- Returns:
- the alpha bi level effect
-
setAlphaBiLevelEffect
Sets the alpha bi level effect.- Parameters:
alphaBiLevelEffect- the new alpha bi level effect
-
isAlphaCeilingEffect
public boolean isAlphaCeilingEffect()Checks if is alpha ceiling effect.- Returns:
- true, if is alpha ceiling effect
-
setAlphaCeilingEffect
public void setAlphaCeilingEffect(boolean alphaCeilingEffect)Sets the alpha ceiling effect.- Parameters:
alphaCeilingEffect- the new alpha ceiling effect
-
isAlphaFloorEffect
public boolean isAlphaFloorEffect()Checks if is alpha floor effect.- Returns:
- true, if is alpha floor effect
-
setAlphaFloorEffect
public void setAlphaFloorEffect(boolean alphaFloorEffect)Sets the alpha floor effect.- Parameters:
alphaFloorEffect- the new alpha floor effect
-
getAlphaInverseEffect
Gets the alpha inverse effect.- Returns:
- the alpha inverse effect
-
setAlphaInverseEffect
Sets the alpha inverse effect.- Parameters:
alphaInverseEffect- the new alpha inverse effect
-
getAlphaModulateEffect
Gets the alpha modulate effect.- Returns:
- the alpha modulate effect
-
setAlphaModulateEffect
Sets the alpha modulate effect.- Parameters:
alphaModulateEffect- the new alpha modulate effect
-
getAlphaModulateFixedEffect
Gets the alpha modulate fixed effect.- Returns:
- the alpha modulate fixed effect
-
setAlphaModulateFixedEffect
Sets the alpha modulate fixed effect.- Parameters:
alphaModulateFixedEffect- the new alpha modulate fixed effect
-
getAlphaReplaceEffect
Gets the alpha replace effect.- Returns:
- the alpha replace effect
-
setAlphaReplaceEffect
Sets the alpha replace effect.- Parameters:
alphaReplaceEffect- the new alpha replace effect
-
getBiLevelEffect
Gets the bi level effect.- Returns:
- the bi level effect
-
setBiLevelEffect
Sets the bi level effect.- Parameters:
biLevelEffect- the new bi level effect
-
getBlurEffect
Gets the blur effect.- Returns:
- the blur effect
-
setBlurEffect
Sets the blur effect.- Parameters:
blurEffect- the new blur effect
-
getColorChangeEffect
Gets the color change effect.- Returns:
- the color change effect
-
setColorChangeEffect
Sets the color change effect.- Parameters:
colorChangeEffect- the new color change effect
-
getSolidColorReplacement
Gets the solid color replacement.- Returns:
- the solid color replacement
-
setSolidColorReplacement
Sets the solid color replacement.- Parameters:
solidColorReplacement- the new solid color replacement
-
getDuotoneEffect
Gets the duotone effect.- Returns:
- the duotone effect
-
setDuotoneEffect
Sets the duotone effect.- Parameters:
duotoneEffect- the new duotone effect
-
getFillOverlayEffect
Gets the fill overlay effect.- Returns:
- the fill overlay effect
-
setFillOverlayEffect
Sets the fill overlay effect.- Parameters:
fillOverlayEffect- the new fill overlay effect
-
isGrayScaleEffect
public boolean isGrayScaleEffect()Checks if is gray scale effect.- Returns:
- true, if is gray scale effect
-
setGrayScaleEffect
public void setGrayScaleEffect(boolean grayScaleEffect)Sets the gray scale effect.- Parameters:
grayScaleEffect- the new gray scale effect
-
getLuminanceEffect
Gets the luminance effect.- Returns:
- the luminance effect
-
setLuminanceEffect
Sets the luminance effect.- Parameters:
luminanceEffect- the new luminance effect
-
getTintEffect
Gets the tint effect.- Returns:
- the tint effect
-
setTintEffect
Sets the tint effect.- Parameters:
tintEffect- the new tint effect
-
getCompressionState
Gets the compression state.- Returns:
- the compression state
-
setCompressionState
Sets the compression state.- Parameters:
compressionState- the new compression state
-
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) -
getSourceRectangle
Gets the source rectangle.- Returns:
- the source rectangle
-
setSourceRectangle
Sets the source rectangle.- Parameters:
sourceRectangle- the new source rectangle
-
getStretch
Gets the stretch.- Returns:
- the stretch
-
setStretch
Sets the stretch.- Parameters:
tile- the new stretch
-
getTile
Gets the tile.- Returns:
- the tile
-
setTile
Sets the tile.- Parameters:
tile- the new tile
-
getShapeProperties
Gets the shape properties.- Returns:
- the shape properties
-
getID
Gets the id.- Returns:
- the id
-
setID
Sets the id.- Parameters:
id- the new id
-
getName
Gets the name.- Returns:
- the name
-
setName
Sets the name.- Parameters:
name- the new name
-
getDescription
Gets the description.- Returns:
- the description
-
setDescription
Sets the description.- Parameters:
description- the new description
-
isHidden
public boolean isHidden()Checks if is hidden.- Returns:
- true, if is hidden
-
setHidden
public void setHidden(boolean isHidden)Sets the hidden.- Parameters:
isHidden- the new hidden
-
getLocking
Gets the locking.- Returns:
- the locking
-
setLocking
Sets the locking.- Parameters:
locking- the new locking
-