Delegate PDFViewWPF.OnThumbnailGeneratedEventHandler
Delegate for when PDFViewWPF has finished rendering a requested thumbnail.
Namespace: pdftron.PDF
Assembly: PDFNet.dll
Syntax
public delegate void PDFViewWPF.OnThumbnailGeneratedEventHandler(int pageNumber, byte[] thumb, int w, int h)
Parameters
Type | Name | Description |
---|---|---|
int | pageNumber | page number that this thumbnail is for. |
byte[] | thumb | raw thumbnail image in Bgra32 format. |
int | w | width of the thumbnail. |
int | h | height of the thumbnail. |
Examples
To create a BitmapSource from this event use the following
PixelFormat fmt = PixelFormats.Bgra32;
BitmapSource bps = BitmapSource.Create(w, h, 96.0, 96.0, fmt, null, thumb, (w * fmt.BitsPerPixel + 7) / 8);
Constructors
OnThumbnailGeneratedEventHandler(object, IntPtr)
Declaration
public OnThumbnailGeneratedEventHandler(object A_0, IntPtr A_1)
Parameters
Type | Name | Description |
---|---|---|
object | A_0 | |
IntPtr | A_1 |
Methods
BeginInvoke(int, byte[], int, int, AsyncCallback, object)
Declaration
public IAsyncResult BeginInvoke(int pageNumber, byte[] thumb, int w, int h, AsyncCallback callback, object obj)
Parameters
Type | Name | Description |
---|---|---|
int | pageNumber | |
byte[] | thumb | |
int | w | |
int | h | |
AsyncCallback | callback | |
object | obj |
Returns
Type | Description |
---|---|
IAsyncResult |
EndInvoke(IAsyncResult)
Declaration
public void EndInvoke(IAsyncResult result)
Parameters
Type | Name | Description |
---|---|---|
IAsyncResult | result |
Invoke(int, byte[], int, int)
Declaration
public void Invoke(int pageNumber, byte[] thumb, int w, int h)
Parameters
Type | Name | Description |
---|---|---|
int | pageNumber | |
byte[] | thumb | |
int | w | |
int | h |