Class ImageResource

java.lang.Object
com.dynamicpdf.api.Resource
com.dynamicpdf.api.ImageResource

public class ImageResource extends Resource
Represents an image resource used to create an ImageInput object to create PDF from images.
  • Constructor Details

    • ImageResource

      public ImageResource(String filePath, String resourceName)
      Initializes a new instance of the ImageResource class.
      Parameters:
      filePath - The image file path.
      resourceName - The name of the resource.
    • ImageResource

      public ImageResource(String filePath)
      Initializes a new instance of the ImageResource class.
      Parameters:
      filePath - The image file path.
    • ImageResource

      public ImageResource(byte[] value, String resourceName)
      Initializes a new instance of the ImageResource class.
      Parameters:
      value - The byte array of the image file.
      resourceName - The name of the resource.
    • ImageResource

      public ImageResource(byte[] value)
      Initializes a new instance of the ImageResource class.
      Parameters:
      value - The byte array of the image file.
    • ImageResource

      public ImageResource(InputStream data, String resourceName)
      Initializes a new instance of the ImageResource class.
      Parameters:
      data - The stream of the image file.
      resourceName - The name of the resource.
    • ImageResource

      public ImageResource(InputStream data)
      Initializes a new instance of the ImageResource class.
      Parameters:
      data - The stream of the image file.