Package com.dynamicpdf.api
Class ImageResource
java.lang.Object
com.dynamicpdf.api.Resource
com.dynamicpdf.api.ImageResource
Represents an image resource used to create an
ImageInput
object to create PDF from images.-
Constructor Summary
ConstructorsConstructorDescriptionImageResource(byte[] value)Initializes a new instance of theImageResourceclass.ImageResource(byte[] value, String resourceName)Initializes a new instance of theImageResourceclass.ImageResource(InputStream data)Initializes a new instance of theImageResourceclass.ImageResource(InputStream data, String resourceName)Initializes a new instance of theImageResourceclass.ImageResource(String filePath)Initializes a new instance of theImageResourceclass.ImageResource(String filePath, String resourceName)Initializes a new instance of theImageResourceclass. -
Method Summary
Methods inherited from class com.dynamicpdf.api.Resource
getResourceName, setResourceName
-
Constructor Details
-
ImageResource
Initializes a new instance of theImageResourceclass.- Parameters:
filePath- The image file path.resourceName- The name of the resource.
-
ImageResource
Initializes a new instance of theImageResourceclass.- Parameters:
filePath- The image file path.
-
ImageResource
Initializes a new instance of theImageResourceclass.- 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 theImageResourceclass.- Parameters:
value- The byte array of the image file.
-
ImageResource
Initializes a new instance of theImageResourceclass.- Parameters:
data- The stream of the image file.resourceName- The name of the resource.
-
ImageResource
Initializes a new instance of theImageResourceclass.- Parameters:
data- The stream of the image file.
-