Table of Contents

Delegate HtmlImageLoadCallback

Namespace
TheArtOfDev.HtmlRenderer.Core.Entities
Assembly
StockSharp.Xaml.dll

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.

public delegate void HtmlImageLoadCallback(string path, ImageSource image, RRect imageRectangle)

Parameters

path string

the path to the image to load (file path or URL)

image ImageSource

the image to use

imageRectangle RRect

optional: limit to specific rectangle in the loaded image

Extension Methods

Constructors

HtmlImageLoadCallback(object, IntPtr)

public HtmlImageLoadCallback(object @object, IntPtr method)

Parameters

object object
method IntPtr

Methods

BeginInvoke(string, ImageSource, RRect, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(string path, ImageSource image, RRect imageRectangle, AsyncCallback callback, object @object)

Parameters

path string
image ImageSource
imageRectangle RRect
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual void EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Invoke(string, ImageSource, RRect)

public virtual void Invoke(string path, ImageSource image, RRect imageRectangle)

Parameters

path string
image ImageSource
imageRectangle RRect