接口 IPictureFormat


public interface IPictureFormat
Represents properties and methods that apply to pictures.
  • 方法概要

    修饰符和类型
    方法
    说明
    double
    Gets the brightness of the specified picture or OLE object.
    Gets the type of color transformation applied to the specified picture.
    double
    Gets the contrast for the specified picture or OLE object.
    Gets the ICrop object that represents the cropping settings for thespecified IPictureFormat object.
    double
    Gets the number of points that are cropped off the bottom of the specified picture.
    double
    Gets the number of points that are cropped off the left side of the specified picture.
    double
    Gets the number of points that are cropped off the right side of the specified picture.
    double
    Gets the number of points that are cropped off the top of the specified picture.
    byte[]
    Gets the byte array of the specified picture.
    Gets or sets the reference of current picture.
    double
    Gets the degree of transparency of the specified picture.
    boolean
    Gets whether the specified picture format uses a transparent background.
    Gets the type of the specified picture.
    Gets the URL of the picture from JSON.
    void
    setBrightness(double value)
    Sets the brightness of the specified picture or OLE object.
    void
    Sets the type of color transformation applied to the specified picture.
    void
    setContrast(double value)
    Sets the contrast for the specified picture or OLE object.
    void
    setCropBottom(double value)
    Sets the number of points that are cropped off the bottom of the specified picture.
    void
    setCropLeft(double value)
    Sets the number of points that are cropped off the left side of the specified picture.
    void
    setCropRight(double value)
    Sets the number of points that are cropped off the right side of the specified picture.
    void
    setCropTop(double value)
    Sets the number of points that are cropped off the top of the specified picture.
    void
    setFill(byte[] bytes)
    Sets the byte array of the specified picture.
    void
    Sets the reference of current picture.
    void
    setTransparency(double value)
    Sets the degree of transparency of the specified picture as a value from 0.0 (opaque) through 1.0 (clear).
    void
    setTransparentBackground(boolean value)
    Sets whether the specified picture format uses a transparent background.
  • 方法详细资料

    • getBrightness

      double getBrightness()
      Gets the brightness of the specified picture or OLE object. The value for this property must be a number from 0.0 (dimmest) to 1.0 (brightest).
    • setBrightness

      void setBrightness(double value)
      Sets the brightness of the specified picture or OLE object. The value for this property must be a number from 0.0 (dimmest) to 1.0 (brightest).
    • getColorType

      PictureColorType getColorType()
      Gets the type of color transformation applied to the specified picture.
    • setColorType

      void setColorType(PictureColorType value)
      Sets the type of color transformation applied to the specified picture.
    • getContrast

      double getContrast()
      Gets the contrast for the specified picture or OLE object. The value for this property must be a number from 0.0 (the least contrast) to 1.0 (the greatest contrast).
    • setContrast

      void setContrast(double value)
      Sets the contrast for the specified picture or OLE object. The value for this property must be a number from 0.0 (the least contrast) to 1.0 (the greatest contrast).
    • getCrop

      ICrop getCrop()
      Gets the ICrop object that represents the cropping settings for thespecified IPictureFormat object.
    • getCropBottom

      double getCropBottom()
      Gets the number of points that are cropped off the bottom of the specified picture.
    • setCropBottom

      void setCropBottom(double value)
      Sets the number of points that are cropped off the bottom of the specified picture.
    • getCropLeft

      double getCropLeft()
      Gets the number of points that are cropped off the left side of the specified picture.
    • setCropLeft

      void setCropLeft(double value)
      Sets the number of points that are cropped off the left side of the specified picture.
    • getCropRight

      double getCropRight()
      Gets the number of points that are cropped off the right side of the specified picture.
    • setCropRight

      void setCropRight(double value)
      Sets the number of points that are cropped off the right side of the specified picture.
    • getCropTop

      double getCropTop()
      Gets the number of points that are cropped off the top of the specified picture.
    • setCropTop

      void setCropTop(double value)
      Sets the number of points that are cropped off the top of the specified picture.
    • getFill

      byte[] getFill()
      Gets the byte array of the specified picture.
    • setFill

      void setFill(byte[] bytes)
      Sets the byte array of the specified picture.
    • getType

      ImageType getType()
      Gets the type of the specified picture.
      返回:
    • getTransparency

      double getTransparency()
      Gets the degree of transparency of the specified picture.
    • setTransparency

      void setTransparency(double value)
      Sets the degree of transparency of the specified picture as a value from 0.0 (opaque) through 1.0 (clear).
    • getUrl

      String getUrl()
      Gets the URL of the picture from JSON.
      返回:
      URL of the picture
    • getReference

      String getReference()
      Gets or sets the reference of current picture.
    • setReference

      void setReference(String value)
      Sets the reference of current picture.
    • getTransparentBackground

      boolean getTransparentBackground()
      Gets whether the specified picture format uses a transparent background.
    • setTransparentBackground

      void setTransparentBackground(boolean value)
      Sets whether the specified picture format uses a transparent background.