Package io.scanbot.sdk.image
Class PathImageLoadOptions
- java.lang.Object
-
- io.scanbot.sdk.image.PathImageLoadOptions
-
public class PathImageLoadOptions extends java.lang.ObjectOptions for loading image from path.
-
-
Constructor Summary
Constructors Constructor Description PathImageLoadOptions()Constructs PathImageLoadOptions with default parameters.PathImageLoadOptions(Rectangle cropRect, ColorConversion colorConversion, PathLoadMode loadMode)Constructs PathImageLoadOptions with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorConversiongetColorConversion()Getter for colorConversion field.RectanglegetCropRect()Getter for cropRect field.PathLoadModegetLoadMode()Getter for loadMode field.voidsetColorConversion(ColorConversion colorConversion)Setter for colorConversion field.voidsetCropRect(Rectangle cropRect)Setter for cropRect field.voidsetLoadMode(PathLoadMode loadMode)Setter for loadMode field.
-
-
-
Constructor Detail
-
PathImageLoadOptions
public PathImageLoadOptions(Rectangle cropRect, ColorConversion colorConversion, PathLoadMode loadMode)
Constructs PathImageLoadOptions with the given params.- Parameters:
cropRect- If the rect is not empty, the image will be cropped to this rect before processing.colorConversion- Color conversion to apply during image loading. Default is ANY_COLORloadMode- Load mode. Default is EAGER
-
PathImageLoadOptions
public PathImageLoadOptions()
Constructs PathImageLoadOptions with default parameters.
-
-
Method Detail
-
getCropRect
public Rectangle getCropRect()
Getter for cropRect field. See constructor documentation for more information about the field.- Returns:
- cropRect
-
setCropRect
public void setCropRect(Rectangle cropRect)
Setter for cropRect field. See constructor documentation for more information about the field.- Parameters:
cropRect- Value to set.
-
getColorConversion
public ColorConversion getColorConversion()
Getter for colorConversion field. See constructor documentation for more information about the field.- Returns:
- colorConversion
-
setColorConversion
public void setColorConversion(ColorConversion colorConversion)
Setter for colorConversion field. See constructor documentation for more information about the field.- Parameters:
colorConversion- Value to set.
-
getLoadMode
public PathLoadMode getLoadMode()
Getter for loadMode field. See constructor documentation for more information about the field.- Returns:
- loadMode
-
setLoadMode
public void setLoadMode(PathLoadMode loadMode)
Setter for loadMode field. See constructor documentation for more information about the field.- Parameters:
loadMode- Value to set.
-
-