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
ConstructorDescriptionImageResource(byte[] value)
Initializes a new instance of theImageResource
class.ImageResource(byte[] value, String resourceName)
Initializes a new instance of theImageResource
class.ImageResource(InputStream data)
Initializes a new instance of theImageResource
class.ImageResource(InputStream data, String resourceName)
Initializes a new instance of theImageResource
class.ImageResource(String filePath)
Initializes a new instance of theImageResource
class.ImageResource(String filePath, String resourceName)
Initializes a new instance of theImageResource
class. -
Method Summary
Methods inherited from class com.dynamicpdf.api.Resource
getResourceName, setResourceName
-
Constructor Details
-
ImageResource
Initializes a new instance of theImageResource
class.- Parameters:
filePath
- The image file path.resourceName
- The name of the resource.
-
ImageResource
Initializes a new instance of theImageResource
class.- Parameters:
filePath
- The image file path.
-
ImageResource
Initializes a new instance of theImageResource
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 theImageResource
class.- Parameters:
value
- The byte array of the image file.
-
ImageResource
Initializes a new instance of theImageResource
class.- Parameters:
data
- The stream of the image file.resourceName
- The name of the resource.
-
ImageResource
Initializes a new instance of theImageResource
class.- Parameters:
data
- The stream of the image file.
-