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
stringthe path to the image to load (file path or URL)
image
ImageSourcethe image to use
imageRectangle
RRectoptional: limit to specific rectangle in the loaded image
- Extension Methods
Constructors
HtmlImageLoadCallback(object, IntPtr)
public HtmlImageLoadCallback(object @object, IntPtr method)
Parameters
Methods
BeginInvoke(string, ImageSource, RRect, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(string path, ImageSource image, RRect imageRectangle, AsyncCallback callback, object @object)
Parameters
path
stringimage
ImageSourceimageRectangle
RRectcallback
AsyncCallbackobject
object
Returns
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
stringimage
ImageSourceimageRectangle
RRect