createThumbnail

suspend fun createThumbnail(width: Int, height: Int): Result<BitmapDrawable>

Creates a thumbnail image with the specified width and height. This is only applicable if the attachment type is FormAttachmentType.Image.

Return

A Result that contains the thumbnail, or an error result.

Since

200.5.0

Parameters

width

the width in pixels of the thumbnail to create

height

the height in pixels of the thumbnail to create