Interface HTMLImageElement

All Superinterfaces:
Element, EventTarget, HTMLElement, InnerHTML, Node, NonDocumentTypeChildNode, ParentNode
All Known Implementing Classes:
HTMLImageElementImpl

public interface HTMLImageElement extends HTMLElement
Provides special properties and methods for manipulating <img> elements.
  • Method Details

    • getAlign

      @Deprecated String getAlign()
      Deprecated.
      Sets or retrieves how the object is aligned with adjacent text.
      Returns:
      a String object.
    • setAlign

      @Deprecated void setAlign(String align)
      Deprecated.

      setAlign.

      Parameters:
      align - a String object.
    • getAlt

      String getAlt()
      Sets or retrieves a text alternative to the graphic.
      Returns:
      a String object.
    • setAlt

      void setAlt(String alt)

      setAlt.

      Parameters:
      alt - a String object.
    • getBorder

      @Deprecated String getBorder()
      Deprecated.
      Specifies the properties of a border drawn around an object.
      Returns:
      a String object.
    • setBorder

      void setBorder(String border)

      setBorder.

      Parameters:
      border - a String object.
    • isComplete

      boolean isComplete()
      Retrieves whether the object is fully loaded.
      Returns:
      a boolean.
    • getCrossOrigin

      String getCrossOrigin()

      getCrossOrigin.

      Returns:
      a String object.
    • setCrossOrigin

      void setCrossOrigin(String crossOrigin)

      setCrossOrigin.

      Parameters:
      crossOrigin - a String object.
    • getCurrentSrc

      String getCurrentSrc()

      getCurrentSrc.

      Returns:
      a String object.
    • getDecoding

      Decoding getDecoding()

      getDecoding.

      Returns:
      a Decoding object.
    • setDecoding

      void setDecoding(Decoding decoding)

      setDecoding.

      Parameters:
      decoding - a Decoding object.
    • getHeight

      double getHeight()
      Sets or retrieves the height of the object.
      Returns:
      a double.
    • setHeight

      void setHeight(double height)

      setHeight.

      Parameters:
      height - a double.
    • getHspace

      @Deprecated double getHspace()
      Deprecated.
      Sets or retrieves the width of the border to draw around the object.
      Returns:
      a double.
    • setHspace

      void setHspace(double hspace)

      setHspace.

      Parameters:
      hspace - a double.
    • isIsMap

      boolean isIsMap()
      Sets or retrieves whether the image is a server-side image map.
      Returns:
      a boolean.
    • setIsMap

      void setIsMap(boolean isMap)

      setIsMap.

      Parameters:
      isMap - a boolean.
    • getLongDesc

      @Deprecated String getLongDesc()
      Deprecated.
      Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
      Returns:
      a String object.
    • setLongDesc

      void setLongDesc(String longDesc)

      setLongDesc.

      Parameters:
      longDesc - a String object.
    • getLowsrc

      @Deprecated String getLowsrc()
      Deprecated.

      getLowsrc.

      Returns:
      a String object.
    • setLowsrc

      void setLowsrc(String lowsrc)

      setLowsrc.

      Parameters:
      lowsrc - a String object.
    • getName

      @Deprecated String getName()
      Deprecated.
      Sets or retrieves the name of the object.
      Returns:
      a String object.
    • setName

      void setName(String name)

      setName.

      Parameters:
      name - a String object.
    • getNaturalHeight

      double getNaturalHeight()
      The original height of the image resource before sizing.
      Returns:
      a double.
    • getNaturalWidth

      double getNaturalWidth()
      The original width of the image resource before sizing.
      Returns:
      a double.
    • getReferrerPolicy

      String getReferrerPolicy()

      getReferrerPolicy.

      Returns:
      a String object.
    • setReferrerPolicy

      void setReferrerPolicy(String referrerPolicy)

      setReferrerPolicy.

      Parameters:
      referrerPolicy - a String object.
    • getSizes

      String getSizes()

      getSizes.

      Returns:
      a String object.
    • setSizes

      void setSizes(String sizes)

      setSizes.

      Parameters:
      sizes - a String object.
    • getSrc

      String getSrc()
      The address or URL of the a media resource that is to be considered.
      Returns:
      a String object.
    • setSrc

      void setSrc(String src)

      setSrc.

      Parameters:
      src - a String object.
    • getSrcset

      String getSrcset()

      getSrcset.

      Returns:
      a String object.
    • setSrcset

      void setSrcset(String srcset)

      setSrcset.

      Parameters:
      srcset - a String object.
    • getUseMap

      String getUseMap()
      Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
      Returns:
      a String object.
    • setUseMap

      void setUseMap(String useMap)

      setUseMap.

      Parameters:
      useMap - a String object.
    • getVspace

      @Deprecated double getVspace()
      Deprecated.
      Sets or retrieves the vertical margin for the object.
      Returns:
      a double.
    • setVspace

      void setVspace(double vspace)

      setVspace.

      Parameters:
      vspace - a double.
    • getWidth

      double getWidth()
      Sets or retrieves the width of the object.
      Returns:
      a double.
    • setWidth

      void setWidth(double width)

      setWidth.

      Parameters:
      width - a double.
    • getX

      double getX()

      getX.

      Returns:
      a double.
    • getY

      double getY()

      getY.

      Returns:
      a double.