PeachDrawing.Core

PeachDrawing.Core.RenderContext

RenderContext.GetResourceStream(Uri) 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, Uri, FontFaceDescriptors, IReadOnlyList<RuneInterval>) then reports the load as failed rather than throwing). A backend that loads resources overrides this.

public virtual System.Threading.Tasks.ValueTask<PeachDrawing.Core.RNetworkResponse?> GetResourceStream(System.Uri uri);

Parameters

uri System.Uri

Uri to load

Returns

System.Threading.Tasks.ValueTask<RNetworkResponse>
The stream of the contents