| com.pdftron.pdf.PDFViewCtrl.ThumbAsyncListener |
Known Indirect Subclasses
|
Class Overview
Used for receiving events from a request for thumbnails. The request
can be started with getThumbAsync(int).
Summary
| Public Methods |
|
abstract
void
|
onThumbReceived(int page, int[] buf, int width, int height)
This event is called when a thumbnail was received.
|
Public Methods
public
abstract
void
onThumbReceived
(int page, int[] buf, int width, int height)
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);
Parameters
| 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
|