LayoutFarm.Demo_UIHtmlBox_ContentMx.contentMx_ImageLoadingRequest C# (CSharp) Method

contentMx_ImageLoadingRequest() private method

private contentMx_ImageLoadingRequest ( object sender, LayoutFarm e ) : void
sender object
e LayoutFarm
return void
        void contentMx_ImageLoadingRequest(object sender, LayoutFarm.ContentManagers.ImageRequestEventArgs e)
        {
            //load resource -- sync or async? 
            string absolutePath = imgFolderPath + "\\" + e.ImagSource;
            if (!System.IO.File.Exists(absolutePath))
            {
                return;
            }
            //load
             
            e.SetResultImage(LoadBitmap(absolutePath));
        }
    }