public static void DrawSprite(this DeviceContext context, ResourceLoader loader, string key) => loader.Get <SpriteResource>(key).Render(context);
public static void DrawBitmap(this RenderTarget target, ResourceLoader loader, string key, RawRectangleF rectangle, float opacity = 1, BitmapInterpolationMode bitmapInterpolationMode = BitmapInterpolationMode.Linear) => target.DrawBitmap(loader.Get <ImageResource>(key).Image, rectangle, opacity, bitmapInterpolationMode);