Class ImageCommand

java.lang.Object
org.jxls.command.AbstractCommand
org.jxls.command.ImageCommand
All Implemented Interfaces:
Command

public class ImageCommand extends AbstractCommand

Implements image rendering

Image is specified by providing image bytes and type.

Author:
Leonid Vysochyn
  • Field Details

  • Constructor Details

    • ImageCommand

      public ImageCommand()
    • ImageCommand

      public ImageCommand(String image, ImageType imageType)
      Creates the command from an image in the context
      Parameters:
      image - name of the context attribute with the image bytes
      imageType - type of the image
    • ImageCommand

      public ImageCommand(byte[] imageBytes, ImageType imageType)
      Creates the command from the image bytes
      Parameters:
      imageBytes - the image byte array
      imageType - the type of the image to render (e.g. PNG, JPEG etc)
  • Method Details