ThumbnailConfig
constructor(width: Int = 200, height: Int = 200, quality: Bitmap.Config = Bitmap.Config.RGB_565, annotationRendering: Boolean = false, aspectRatio: AspectRatio = AspectRatio.PRESERVE, backgroundColor: Int = Color.WHITE)
Parameters
width
The width of the thumbnail in pixels. Default is 200.
height
The height of the thumbnail in pixels. Default is 200.
quality
The bitmap configuration for quality vs memory trade-off. Default is RGB_565.
annotationRendering
Whether to render annotations in the thumbnail. Default is false.
aspectRatio
How to handle the aspect ratio of the original page. Default is PRESERVE.
backgroundColor
Background color for transparent areas. Default is white.