Companion Object

object Companion

Loading pages from streams, files, assets, and content URIs.

Properties

DISPLAY_BITMAP

const val DISPLAY_BITMAP: Int = 1

Pass to createBitmap to transform bitmap to specified ScanPicture orientation.

FIT_TO_HARDWARE

const val FIT_TO_HARDWARE: Int = 4

Pass to createBitmap to cap the result at the largest bitmap the platform can draw, as bounded by android.graphics.RecordingCanvas.

FIT_TO_TEXTURE

const val FIT_TO_TEXTURE: Int = 2

Pass to createBitmap to resize bitmap less than device OpenGL texture It is useful to display picture through Android’s android.widget.ImageView cannot display images great than OpenGL texture.

Functions

load

fun load(stream: InputStream): ScanPicture

Loads a page from a stream written by ScanPicture.write.

Top