com.pdftron.pdf.PDFViewCtrl.ThumbAsyncListener |
![]() |
Used for receiving events from a request for thumbnails. The request
can be started with getThumbAsync(int)
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
onThumbReceived(int page, int[] buf, int width, int height)
This event is called when a thumbnail was received.
|
This event is called when a thumbnail was received.
To create the Bitmap object, you can use:
Bitmap bitmap = Bitmap.createBitmap(buf, width, height, Bitmap.Config.ARGB_8888);
page | the page number which this thumbnail refers to |
---|---|
buf | the image data buffer |
width | the width of the bitmap |
height | the height of the bitmap |