-
public final class ThumbnailConfigConfiguration class for PDF thumbnail generation.
-
-
Field Summary
Fields Modifier and Type Field Description private final Integerwidthprivate final Integerheightprivate final Bitmap.Configqualityprivate final BooleanannotationRenderingprivate final AspectRatioaspectRatioprivate final IntegerbackgroundColor
-
Constructor Summary
Constructors Constructor Description ThumbnailConfig(Integer width, Integer height, Bitmap.Config quality, Boolean annotationRendering, AspectRatio aspectRatio, Integer backgroundColor)
-
Method Summary
Modifier and Type Method Description final IntegergetWidth()final IntegergetHeight()final Bitmap.ConfiggetQuality()final BooleangetAnnotationRendering()final AspectRatiogetAspectRatio()final IntegergetBackgroundColor()-
-
Constructor Detail
-
ThumbnailConfig
ThumbnailConfig(Integer width, Integer height, Bitmap.Config quality, Boolean annotationRendering, AspectRatio aspectRatio, Integer backgroundColor)
- Parameters:
width- The width of the thumbnail in pixels.height- The height of the thumbnail in pixels.quality- The bitmap configuration for quality vs memory trade-off.annotationRendering- Whether to render annotations in the thumbnail.aspectRatio- How to handle the aspect ratio of the original page.backgroundColor- Background color for transparent areas.
-
-
Method Detail
-
getQuality
final Bitmap.Config getQuality()
-
getAnnotationRendering
final Boolean getAnnotationRendering()
-
getAspectRatio
final AspectRatio getAspectRatio()
-
getBackgroundColor
final Integer getBackgroundColor()
-
-
-
-