Class Image

All Implemented Interfaces:
Serializable

public class Image extends AbstractElementContent

This content is rendered as an image.

Example:

BufferedImage image= ...; // create an image
new Image(includeSpec, image);

An image content is embedded into HTML as data URL. Currently there is no support to render an image into plain text.

See Also:
  • Constructor Details

    • Image

      public Image(IncludeSpec includeSpec, RenderedImage img, String titleText)
      Create a content with a given include spec and image data.
      Parameters:
      includeSpec - The include spec of the comment
      img - the image data
      titleText - optional title
    • Image

      public Image(IncludeSpec includeSpec, int width, int height, String base64, String titleText)
      Create a content with a given include spec and image data.
      Parameters:
      includeSpec - The include spec of the comment
      width - mandatory width
      height - mandatory height
      base64 - mandatory base64 data
      titleText - optional title
  • Method Details