com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class AmpImage

    • Field Detail

      • defaultWidth

        protected int defaultWidth
      • defaultHeight

        protected int defaultHeight
    • Constructor Detail

      • AmpImage

        public AmpImage(int width,
                int height)

        Create instance of AmpImage.

        Parameters:
        width - width of AmpImage
        height - height of AmpImage
    • Method Detail

      • getSrc

        public final String getSrc()

        Similar to the src attribute on the img tag. The value must be a URL that points to a publicly-cacheable image file

      • setSrc

        public final void setSrc(String value)

        Similar to the src attribute on the img tag. The value must be a URL that points to a publicly-cacheable image file

      • getAlt

        public final String getAlt()

        A string of alternate text, similar to the alt attribute on img.

      • setAlt

        public final void setAlt(String value)

        A string of alternate text, similar to the alt attribute on img.

      • isValid

        public final boolean isValid()

        Indicates whether this image is valid of AmpImage.

      • toAmpHtml

        public String toAmpHtml()

        Represents amp html version of component.

        Specified by:
        toAmpHtml in class AmpComponent
        Returns:
      • toHtml

        public String toHtml()

        Represents html version of component.

        Specified by:
        toHtml in class AmpComponent
        Returns: