PeachDrawing.Core
PeachDrawing.Core.RenderContext
RenderContext.GetResourceStream(RUri) Method
Gets the given resource using the provided network loader, or null by default (a
render context with no resource-loading concept, e.g. a standalone raster surface, simply
never resolves a URL-based resource - AddFontFamilyFromUrl(string, string, string, RUri, FontFaceDescriptors, IReadOnlyList<RuneInterval>) then reports the
load as failed rather than throwing). A backend that loads resources overrides this.
public virtual System.Threading.Tasks.Task<PeachDrawing.Core.RNetworkResponse?> GetResourceStream(PeachDrawing.Core.RUri uri);
Parameters
uri RUri
Uri to load
Returns
System.Threading.Tasks.Task<RNetworkResponse>
The stream of the contents