Show / Hide Table of Contents

Delegate PDFViewThumbAsyncDelegate

A delegate that will be called after GetThumbAsync retrieves a thumbnail from the on-disk thumbnail cache.

Namespace: pdftron.PDF
Assembly: PDFNet.dll
Syntax
public delegate void PDFViewThumbAsyncDelegate(int page_num, bool was_thumb_found, Bitmap thumb_buf, int thumb_width, int thumb_height, object custom_data);
Parameters
Type Name Description
System.Int32 page_num

The page number of the thumbnail.

System.Boolean was_thumb_found

A boolean value which is true if the thumbnail could be retrieved from the persistent cache, and false otherwise.

System.Drawing.Bitmap thumb_buf

A pointer to the thumbnail image. This buffer's size, in bytes, is equal to thumb_width * thumb_height * 4.

System.Int32 thumb_width

The width, in pixels, of the thumbnail image.

System.Int32 thumb_height

The height, in pixels, of the thumbnail image.

System.Object custom_data

Custom data passed into GetThumbAsync.

Constructors

PDFViewThumbAsyncDelegate(Object, IntPtr)

Declaration
public PDFViewThumbAsyncDelegate(object A_0, IntPtr A_1)
Parameters
Type Name Description
System.Object A_0
System.IntPtr A_1

Methods

BeginInvoke(Int32, Boolean, Bitmap, Int32, Int32, Object, AsyncCallback, Object)

Declaration
public IAsyncResult BeginInvoke(int page_num, bool was_thumb_found, Bitmap thumb_buf, int thumb_width, int thumb_height, object custom_data, AsyncCallback callback, object obj)
Parameters
Type Name Description
System.Int32 page_num
System.Boolean was_thumb_found
System.Drawing.Bitmap thumb_buf
System.Int32 thumb_width
System.Int32 thumb_height
System.Object custom_data
System.AsyncCallback callback
System.Object obj
Returns
Type Description
System.IAsyncResult

EndInvoke(IAsyncResult)

Declaration
public void EndInvoke(IAsyncResult result)
Parameters
Type Name Description
System.IAsyncResult result

Invoke(Int32, Boolean, Bitmap, Int32, Int32, Object)

Declaration
public void Invoke(int page_num, bool was_thumb_found, Bitmap thumb_buf, int thumb_width, int thumb_height, object custom_data)
Parameters
Type Name Description
System.Int32 page_num
System.Boolean was_thumb_found
System.Drawing.Bitmap thumb_buf
System.Int32 thumb_width
System.Int32 thumb_height
System.Object custom_data
Back to top Generated by DocFX