Method IconImageCache.Get
Overload
Gets image from cache or file etc.
public Bitmap Get(string imageSource, int dpi, bool isImage, Action<string, Exception> onException = null)
Parameters
imageSource (string)
File path, or resource path that starts with |
dpi (int)
DPI of window that will display the image. See Dpi. |
isImage (bool)
To detect whether a string is an image, call ImageUtil.HasImageOrResourcePrefix; if it returns |
onException (Action<string, Exception>)
Action to call when fails to load image. If |