Class PictureFill
java.lang.Object
com.independentsoft.office.drawing.PictureFill
- All Implemented Interfaces:
IFill
The Class PictureFill.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new picture fill.PictureFill(InternalXMLStreamReader reader)Instantiates a new picture fill.PictureFill(String filePath)Instantiates a new picture fill.PictureFill(String fileName, byte[] buffer)Instantiates a new picture fill.PictureFill(String fileName, InputStream stream)Instantiates a new picture fill. -
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 buffer.Gets the color change effect.Gets the compression state.Gets the duotone effect.Gets the file name.Gets the fill overlay effect.Gets the input stream.Gets the luminance effect.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.voidLoad.voidLoad.voidload(String fileName, InputStream stream)Load.voidsave(OutputStream stream)Save.voidSave.voidSave.voidsetAlphaBiLevelEffect(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)Sets the buffer.voidsetColorChangeEffect(ColorChangeEffect colorChangeEffect)Sets the color change effect.voidsetCompressionState(BlipCompressionType compressionState)Sets the compression state.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.voidsetLuminanceEffect(LuminanceEffect luminanceEffect)Sets the luminance effect.voidsetSolidColorReplacement(SolidColorReplacement solidColorReplacement)Sets the solid color replacement.voidsetSourceRectangle(SourceRectangle sourceRectangle)Sets the source rectangle.voidsetStretch(Stretch stretch)Sets the stretch.voidSets the tile.voidsetTintEffect(TintEffect tintEffect)Sets the tint effect.toString()
-
Constructor Details
-
PictureFill
public PictureFill()Instantiates a new picture fill. -
PictureFill
Instantiates a new picture fill.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
PictureFill
Instantiates a new picture fill.- Parameters:
filePath- the file path- Throws:
IOException- Signals that an I/O exception has occurred.
-
PictureFill
Instantiates a new picture fill.- Parameters:
fileName- the file namestream- the stream- Throws:
IOException- Signals that an I/O exception has occurred.
-
PictureFill
Instantiates a new picture fill.- Parameters:
fileName- the file namebuffer- the buffer
-
-
Method Details
-
getInputStream
Gets the input stream.- Returns:
- the input stream
-
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
Save.- Parameters:
filePath- the file path- Throws:
IOException- Signals that an I/O exception has occurred.
-
save
Save.- Parameters:
filePath- the file pathoverwrite- the overwrite- Throws:
IOException- Signals that an I/O exception has occurred.
-
save
Save.- Parameters:
stream- the stream- Throws:
IOException- Signals that an I/O exception has occurred.
-
clone
-
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
Gets the file name.- Returns:
- the file name
-
setFileName
Sets the file name.- Parameters:
fileName- the new file name
-
getBuffer
public byte[] getBuffer()Gets the buffer.- Returns:
- the buffer
-
setBuffer
public void setBuffer(byte[] buffer)Sets the buffer.- Parameters:
buffer- the new 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:
stretch- the new stretch
-
getTile
Gets the tile.- Returns:
- the tile
-
setTile
Sets the tile.- Parameters:
tile- the new tile
-