Package com.independentsoft.office.drawing

# Class Blip

java.lang.Object
com.independentsoft.office.drawing.Blip

public class Blip extends Object
The Class Blip.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Blip()`
  Instantiates a new blip.
  `Blip​(InternalXMLStreamReader reader)`
  Instantiates a new blip.
  `Blip​(String filePath)`
  Instantiates a new blip.
  `Blip​(String fileName, byte[] buffer)`
  Instantiates a new blip.
  `Blip​(String fileName, InputStream inputStream)`
  Instantiates a new blip.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Blip`
  `clone()`
  `AlphaBiLevelEffect`
  `getAlphaBiLevelEffect()`
  Gets the alpha bi level effect.
  `AlphaInverseEffect`
  `getAlphaInverseEffect()`
  Gets the alpha inverse effect.
  `AlphaModulateEffect`
  `getAlphaModulateEffect()`
  Gets the alpha modulate effect.
  `AlphaModulateFixedEffect`
  `getAlphaModulateFixedEffect()`
  Gets the alpha modulate fixed effect.
  `AlphaReplaceEffect`
  `getAlphaReplaceEffect()`
  Gets the alpha replace effect.
  `BiLevelEffect`
  `getBiLevelEffect()`
  Gets the bi level effect.
  `BlurEffect`
  `getBlurEffect()`
  Gets the blur effect.
  `byte[]`
  `getBuffer()`
  Gets the buffer.
  `ColorChangeEffect`
  `getColorChangeEffect()`
  Gets the color change effect.
  `BlipCompressionType`
  `getCompressionState()`
  Gets the compression state.
  `DuotoneEffect`
  `getDuotoneEffect()`
  Gets the duotone effect.
  `ExtensionList`
  `getExtensionList()`
  Gets the blip extension list (`a:extLst`), or `null` if the blip has none.
  `String`
  `getFileName()`
  Gets the file name.
  `FillOverlayEffect`
  `getFillOverlayEffect()`
  Gets the fill overlay effect.
  `InputStream`
  `getInputStream()`
  Gets the input stream.
  `LuminanceEffect`
  `getLuminanceEffect()`
  Gets the luminance effect.
  `SolidColorReplacement`
  `getSolidColorReplacement()`
  Gets the solid color replacement.
  `TintEffect`
  `getTintEffect()`
  Gets the tint effect.
  `boolean`
  `isAlphaCeilingEffect()`
  Checks if is alpha ceiling effect.
  `boolean`
  `isAlphaFloorEffect()`
  Checks if is alpha floor effect.
  `static boolean`
  `isEmpty​(String value)`
  Checks if is empty.
  `boolean`
  `isGrayScaleEffect()`
  Checks if is gray scale effect.
  `void`
  `load​(String filePath)`
  Load.
  `void`
  `load​(String fileName, byte[] buffer)`
  Load.
  `void`
  `load​(String fileName, InputStream inputStream)`
  Load.
  `void`
  `save​(OutputStream outputStream)`
  Save.
  `void`
  `save​(String filePath)`
  Save.
  `void`
  `save​(String filePath, boolean overwrite)`
  Save.
  `void`
  `setAlphaBiLevelEffect​(AlphaBiLevelEffect alphaBiLevelEffect)`
  Sets the alpha bi level effect.
  `void`
  `setAlphaCeilingEffect​(boolean alphaCeilingEffect)`
  Sets the alpha ceiling effect.
  `void`
  `setAlphaFloorEffect​(boolean alphaFloorEffect)`
  Sets the alpha floor effect.
  `void`
  `setAlphaInverseEffect​(AlphaInverseEffect alphaInverseEffect)`
  Sets the alpha inverse effect.
  `void`
  `setAlphaModulateEffect​(AlphaModulateEffect alphaModulateEffect)`
  Sets the alpha modulate effect.
  `void`
  `setAlphaModulateFixedEffect​(AlphaModulateFixedEffect alphaModulateFixedEffect)`
  Sets the alpha modulate fixed effect.
  `void`
  `setAlphaReplaceEffect​(AlphaReplaceEffect alphaReplaceEffect)`
  Sets the alpha replace effect.
  `void`
  `setBiLevelEffect​(BiLevelEffect biLevelEffect)`
  Sets the bi level effect.
  `void`
  `setBlurEffect​(BlurEffect blurEffect)`
  Sets the blur effect.
  `void`
  `setBuffer​(byte[] buffer)`
  Sets the buffer.
  `void`
  `setColorChangeEffect​(ColorChangeEffect colorChangeEffect)`
  Sets the color change effect.
  `void`
  `setCompressionState​(BlipCompressionType compressionState)`
  Sets the compression state.
  `void`
  `setDuotoneEffect​(DuotoneEffect duotoneEffect)`
  Sets the duotone effect.
  `void`
  `setExtensionList​(ExtensionList extensionList)`
  Sets the blip extension list (`a:extLst`).
  `void`
  `setFileName​(String fileName)`
  Sets the file name.
  `void`
  `setFillOverlayEffect​(FillOverlayEffect fillOverlayEffect)`
  Sets the fill overlay effect.
  `void`
  `setGrayScaleEffect​(boolean grayScaleEffect)`
  Sets the gray scale effect.
  `void`
  `setLuminanceEffect​(LuminanceEffect luminanceEffect)`
  Sets the luminance effect.
  `void`
  `setSolidColorReplacement​(SolidColorReplacement solidColorReplacement)`
  Sets the solid color replacement.
  `void`
  `setTintEffect​(TintEffect tintEffect)`
  Sets the tint effect.
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### Blip

    public Blip()
    Instantiates a new blip.

  - ### Blip

    public Blip​(InternalXMLStreamReader reader) throws XMLStreamException
    Instantiates a new blip.
    Parameters:
      `reader` - the reader
    Throws:
      `XMLStreamException` - the xML stream exception

  - ### Blip

    public Blip​(String filePath) throws IOException
    Instantiates a new blip.
    Parameters:
      `filePath` - the file path
    Throws:
      `IOException` - Signals that an I/O exception has occurred.

  - ### Blip

    public Blip​(String fileName, InputStream inputStream) throws IOException
    Instantiates a new blip.
    Parameters:
      `fileName` - the file name
      `inputStream` - the input stream
    Throws:
      `IOException` - Signals that an I/O exception has occurred.

  - ### Blip

    public Blip​(String fileName, byte[] buffer)
    Instantiates a new blip.
    Parameters:
      `fileName` - the file name
      `buffer` - the buffer

- ## Method Details

  - ### 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 inputStream) throws IOException
    Load.
    Parameters:
      `fileName` - the file name
      `inputStream` - the input 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 outputStream) throws IOException
    Save.
    Parameters:
      `outputStream` - the output stream
    Throws:
      `IOException` - Signals that an I/O exception has occurred.

  - ### getInputStream

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

  - ### clone

    public Blip clone()
    Overrides:
      `clone` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### isEmpty

    public static boolean isEmpty​(String value)
    Checks if is empty.
    Parameters:
      `value` - the value
    Returns:
      true, if is empty

  - ### 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

  - ### getExtensionList

    public ExtensionList getExtensionList()
    Gets the blip extension list (`a:extLst`), or `null` if the blip has none.
    Returns:
      the extension list

  - ### setExtensionList

    public void setExtensionList​(ExtensionList extensionList)
    Sets the blip extension list (`a:extLst`).
    Parameters:
      `extensionList` - the new extension list