@Deprecated public class JaiImageProcessor extends IIOImageProcessor
ImageProcessor.CropRectangle, ImageProcessor.Dimensions, ImageProcessor.ImageProcessorExceptionApplication.Component.LifecycleStateMINIMUM_CROP_SIZE| Constructor and Description |
|---|
JaiImageProcessor()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
cropAndScale(InputStream mainImageStream,
ImageProcessor.CropRectangle crop,
ImageProcessor.Dimensions limits)
Deprecated.
|
ImageProcessor.Dimensions |
getDimensions(InputStream imageStream)
Deprecated.
|
void |
startup(Application application,
ComponentStartupStatus ss)
Deprecated.
|
shutdown@Deprecated public void startup(Application application, ComponentStartupStatus ss)
IIOImageProcessorstartup in interface Application.Componentstartup in class IIOImageProcessor@Deprecated public ImageProcessor.Dimensions getDimensions(InputStream imageStream) throws ImageProcessor.ImageProcessorException, IOException
ImageProcessorgetDimensions in interface ImageProcessorgetDimensions in class IIOImageProcessorimageStream - The image stream. This method will not close it.ImageProcessor.ImageProcessorException - if the stream does not contain a valid image.IOException - if the stream cannot be read.@Deprecated public InputStream cropAndScale(InputStream mainImageStream, ImageProcessor.CropRectangle crop, ImageProcessor.Dimensions limits) throws ImageProcessor.ImageProcessorException, IOException
IIOImageProcessorcropAndScale in interface ImageProcessorcropAndScale in class IIOImageProcessormainImageStream - The image stream. This method will not close it.crop - x and y determine the upper left corner of the crop area.
height and width determine the size of the crop area.limits - The resulting image will be reduced as necessary to fit within
these dimensions.ImageProcessor.ImageProcessorException - If the image is smaller than the minimum crop size, or if
there is another problem cropping the image.IOException - if the image stream cannot be read.Copyright © 2022. All rights reserved.