Package io.scanbot.sdk.image
Class BufferImageLoadOptions
java.lang.Object
io.scanbot.sdk.image.BufferImageLoadOptions
Options for loading image from buffer.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs BufferImageLoadOptions with default parameters.BufferImageLoadOptions(Rectangle cropRect, ColorConversion colorConversion, CanvasColor canvasColor, BufferLoadMode loadMode) Constructs BufferImageLoadOptions with the given params. -
Method Summary
Modifier and TypeMethodDescriptionGetter for canvasColor field.Getter for colorConversion field.Getter for cropRect field.Getter for loadMode field.voidsetCanvasColor(CanvasColor canvasColor) Setter for canvasColor field.voidsetColorConversion(ColorConversion colorConversion) Setter for colorConversion field.voidsetCropRect(Rectangle cropRect) Setter for cropRect field.voidsetLoadMode(BufferLoadMode loadMode) Setter for loadMode field.
-
Constructor Details
-
BufferImageLoadOptions
public BufferImageLoadOptions(Rectangle cropRect, ColorConversion colorConversion, CanvasColor canvasColor, BufferLoadMode loadMode) Constructs BufferImageLoadOptions 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_COLOR`.canvasColor- CanvasColor color to use when converting images with alpha channel to images without alpha channel. Default is `WHITE`.loadMode- Load mode. Default is `EAGER`.
-
BufferImageLoadOptions
public BufferImageLoadOptions()Constructs BufferImageLoadOptions with default parameters.
-
-
Method Details
-
getCropRect
Getter for cropRect field. See constructor documentation for more information about the field.- Returns:
- cropRect
-
setCropRect
Setter for cropRect field. See constructor documentation for more information about the field.- Parameters:
cropRect- Value to set.
-
getColorConversion
Getter for colorConversion field. See constructor documentation for more information about the field.- Returns:
- colorConversion
-
setColorConversion
Setter for colorConversion field. See constructor documentation for more information about the field.- Parameters:
colorConversion- Value to set.
-
getCanvasColor
Getter for canvasColor field. See constructor documentation for more information about the field.- Returns:
- canvasColor
-
setCanvasColor
Setter for canvasColor field. See constructor documentation for more information about the field.- Parameters:
canvasColor- Value to set.
-
getLoadMode
Getter for loadMode field. See constructor documentation for more information about the field.- Returns:
- loadMode
-
setLoadMode
Setter for loadMode field. See constructor documentation for more information about the field.- Parameters:
loadMode- Value to set.
-