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
pathstringthe path to the image to load (file path or URL)
imageImageSourcethe image to use
imageRectangleRRectoptional: 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
pathstringimageImageSourceimageRectangleRRectcallbackAsyncCallbackobjectobject
Returns
EndInvoke(IAsyncResult)
public virtual void EndInvoke(IAsyncResult result)
Parameters
resultIAsyncResult
Invoke(string, ImageSource, RRect)
public virtual void Invoke(string path, ImageSource image, RRect imageRectangle)
Parameters
pathstringimageImageSourceimageRectangleRRect