Class PictureFill

java.lang.Object
com.independentsoft.office.drawing.PictureFill
All Implemented Interfaces:
IFill

public class PictureFill extends Object implements IFill
The Class PictureFill.
  • Constructor Details

    • PictureFill

      public PictureFill()
      Instantiates a new picture fill.
    • PictureFill

      public PictureFill(InternalXMLStreamReader reader) throws XMLStreamException
      Instantiates a new picture fill.
      Parameters:
      reader - the reader
      Throws:
      XMLStreamException - the xML stream exception
    • PictureFill

      public PictureFill(String filePath) throws IOException
      Instantiates a new picture fill.
      Parameters:
      filePath - the file path
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • PictureFill

      public PictureFill(String fileName, InputStream stream) throws IOException
      Instantiates a new picture fill.
      Parameters:
      fileName - the file name
      stream - the stream
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • PictureFill

      public PictureFill(String fileName, byte[] buffer)
      Instantiates a new picture fill.
      Parameters:
      fileName - the file name
      buffer - the buffer
  • Method Details

    • getInputStream

      public InputStream getInputStream()
      Gets the input stream.
      Returns:
      the input stream
    • load

      public void load(String filePath) throws IOException
      Load.
      Parameters:
      filePath - the file path
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • load

      public void load(String fileName, InputStream stream) throws IOException
      Load.
      Parameters:
      fileName - the file name
      stream - the stream
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • load

      public void load(String fileName, byte[] buffer)
      Load.
      Parameters:
      fileName - the file name
      buffer - the buffer
    • save

      public void save(String filePath) throws IOException
      Save.
      Parameters:
      filePath - the file path
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • save

      public void save(String filePath, boolean overwrite) throws IOException
      Save.
      Parameters:
      filePath - the file path
      overwrite - the overwrite
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • save

      public void save(OutputStream stream) throws IOException
      Save.
      Parameters:
      stream - the stream
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • clone

      public PictureFill clone()
      Specified by:
      clone in interface IFill
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getAlphaBiLevelEffect

      public AlphaBiLevelEffect getAlphaBiLevelEffect()
      Gets the alpha bi level effect.
      Returns:
      the alpha bi level effect
    • setAlphaBiLevelEffect

      public void setAlphaBiLevelEffect(AlphaBiLevelEffect alphaBiLevelEffect)
      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

      public AlphaInverseEffect getAlphaInverseEffect()
      Gets the alpha inverse effect.
      Returns:
      the alpha inverse effect
    • setAlphaInverseEffect

      public void setAlphaInverseEffect(AlphaInverseEffect alphaInverseEffect)
      Sets the alpha inverse effect.
      Parameters:
      alphaInverseEffect - the new alpha inverse effect
    • getAlphaModulateEffect

      public AlphaModulateEffect getAlphaModulateEffect()
      Gets the alpha modulate effect.
      Returns:
      the alpha modulate effect
    • setAlphaModulateEffect

      public void setAlphaModulateEffect(AlphaModulateEffect alphaModulateEffect)
      Sets the alpha modulate effect.
      Parameters:
      alphaModulateEffect - the new alpha modulate effect
    • getAlphaModulateFixedEffect

      public AlphaModulateFixedEffect getAlphaModulateFixedEffect()
      Gets the alpha modulate fixed effect.
      Returns:
      the alpha modulate fixed effect
    • setAlphaModulateFixedEffect

      public void setAlphaModulateFixedEffect(AlphaModulateFixedEffect alphaModulateFixedEffect)
      Sets the alpha modulate fixed effect.
      Parameters:
      alphaModulateFixedEffect - the new alpha modulate fixed effect
    • getAlphaReplaceEffect

      public AlphaReplaceEffect getAlphaReplaceEffect()
      Gets the alpha replace effect.
      Returns:
      the alpha replace effect
    • setAlphaReplaceEffect

      public void setAlphaReplaceEffect(AlphaReplaceEffect alphaReplaceEffect)
      Sets the alpha replace effect.
      Parameters:
      alphaReplaceEffect - the new alpha replace effect
    • getBiLevelEffect

      public BiLevelEffect getBiLevelEffect()
      Gets the bi level effect.
      Returns:
      the bi level effect
    • setBiLevelEffect

      public void setBiLevelEffect(BiLevelEffect biLevelEffect)
      Sets the bi level effect.
      Parameters:
      biLevelEffect - the new bi level effect
    • getBlurEffect

      public BlurEffect getBlurEffect()
      Gets the blur effect.
      Returns:
      the blur effect
    • setBlurEffect

      public void setBlurEffect(BlurEffect blurEffect)
      Sets the blur effect.
      Parameters:
      blurEffect - the new blur effect
    • getColorChangeEffect

      public ColorChangeEffect getColorChangeEffect()
      Gets the color change effect.
      Returns:
      the color change effect
    • setColorChangeEffect

      public void setColorChangeEffect(ColorChangeEffect colorChangeEffect)
      Sets the color change effect.
      Parameters:
      colorChangeEffect - the new color change effect
    • getSolidColorReplacement

      public SolidColorReplacement getSolidColorReplacement()
      Gets the solid color replacement.
      Returns:
      the solid color replacement
    • setSolidColorReplacement

      public void setSolidColorReplacement(SolidColorReplacement solidColorReplacement)
      Sets the solid color replacement.
      Parameters:
      solidColorReplacement - the new solid color replacement
    • getDuotoneEffect

      public DuotoneEffect getDuotoneEffect()
      Gets the duotone effect.
      Returns:
      the duotone effect
    • setDuotoneEffect

      public void setDuotoneEffect(DuotoneEffect duotoneEffect)
      Sets the duotone effect.
      Parameters:
      duotoneEffect - the new duotone effect
    • getFillOverlayEffect

      public FillOverlayEffect getFillOverlayEffect()
      Gets the fill overlay effect.
      Returns:
      the fill overlay effect
    • setFillOverlayEffect

      public void setFillOverlayEffect(FillOverlayEffect fillOverlayEffect)
      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

      public LuminanceEffect getLuminanceEffect()
      Gets the luminance effect.
      Returns:
      the luminance effect
    • setLuminanceEffect

      public void setLuminanceEffect(LuminanceEffect luminanceEffect)
      Sets the luminance effect.
      Parameters:
      luminanceEffect - the new luminance effect
    • getTintEffect

      public TintEffect getTintEffect()
      Gets the tint effect.
      Returns:
      the tint effect
    • setTintEffect

      public void setTintEffect(TintEffect tintEffect)
      Sets the tint effect.
      Parameters:
      tintEffect - the new tint effect
    • getCompressionState

      public BlipCompressionType getCompressionState()
      Gets the compression state.
      Returns:
      the compression state
    • setCompressionState

      public void setCompressionState(BlipCompressionType compressionState)
      Sets the compression state.
      Parameters:
      compressionState - the new compression state
    • getFileName

      public String getFileName()
      Gets the file name.
      Returns:
      the file name
    • setFileName

      public void setFileName(String fileName)
      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

      public SourceRectangle getSourceRectangle()
      Gets the source rectangle.
      Returns:
      the source rectangle
    • setSourceRectangle

      public void setSourceRectangle(SourceRectangle sourceRectangle)
      Sets the source rectangle.
      Parameters:
      sourceRectangle - the new source rectangle
    • getStretch

      public Stretch getStretch()
      Gets the stretch.
      Returns:
      the stretch
    • setStretch

      public void setStretch(Stretch stretch)
      Sets the stretch.
      Parameters:
      stretch - the new stretch
    • getTile

      public Tile getTile()
      Gets the tile.
      Returns:
      the tile
    • setTile

      public void setTile(Tile tile)
      Sets the tile.
      Parameters:
      tile - the new tile