Class BufferImageLoadOptions


  • public class BufferImageLoadOptions
    extends java.lang.Object
    Options for loading image from buffer.
    • Constructor Detail

      • BufferImageLoadOptions

        public BufferImageLoadOptions​(Rectangle cropRect,
                                      ColorConversion colorConversion,
                                      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
        loadMode - Load mode. Default is EAGER
      • BufferImageLoadOptions

        public BufferImageLoadOptions()
        Constructs BufferImageLoadOptions 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 BufferLoadMode getLoadMode()
        Getter for loadMode field. See constructor documentation for more information about the field.
        Returns:
        loadMode
      • setLoadMode

        public void setLoadMode​(BufferLoadMode loadMode)
        Setter for loadMode field. See constructor documentation for more information about the field.
        Parameters:
        loadMode - Value to set.