Delegate HtmlImageLoadCallback
Callback used in HtmlImageLoadEventArgs to allow setting image externally and async.
The callback can provide path to image file path, URL or the actual image to use.
If imageRectangle
is given (not Empty) then only the specified rectangle will
be used from the loaded image and not all of it, also the rectangle will be used for size and not the actual image size.
Namespace: TheArtOfDev.HtmlRenderer.Core.Entities
Assembly: Telerik.WinControls.RadMap.dll
Syntax
public delegate void HtmlImageLoadCallback(string path, object image, RRect imageRectangle);
Parameters
System.String
path
the path to the image to load (file path or URL) |
System.Object
image
the image to use |
RRect
imageRectangle
optional: limit to specific rectangle in the loaded image |
Constructors
HtmlImageLoadCallback(Object, IntPtr)
Declaration
public HtmlImageLoadCallback(object object, IntPtr method)
Parameters
System.Object
object
|
System.IntPtr
method
|
Methods
BeginInvoke(String, Object, RRect, AsyncCallback, Object)
Declaration
public virtual IAsyncResult BeginInvoke(string path, object image, RRect imageRectangle, AsyncCallback callback, object object)
Parameters
System.String
path
|
System.Object
image
|
RRect
imageRectangle
|
System.AsyncCallback
callback
|
System.Object
object
|
Returns
System.IAsyncResult
|
EndInvoke(IAsyncResult)
Declaration
public virtual void EndInvoke(IAsyncResult result)
Parameters
System.IAsyncResult
result
|
Invoke(String, Object, RRect)
Declaration
public virtual void Invoke(string path, object image, RRect imageRectangle)
Parameters
System.String
path
|
System.Object
image
|
RRect
imageRectangle
|