public Image (InputStream is, double requestedWidth, double requestedHeight, boolean preserveRatio, boolean smooth)

Construct a new Image with the specified parameters.

Parameters:
is    the stream from which to load the image
requestedWidth    the image's bounding box width
requestedHeight    the image's bounding box height
preserveRatio    indicates whether to preserve the aspect ratio of the original image when scaling to fit the image within the specified bounding box
smooth    indicates whether to use a better quality filtering algorithm or a faster one when scaling this image to fit within the specified bounding box

Exceptions:
NullPointerException    if input stream is null