Example #1
0
 public static void DrawSprite(this DeviceContext context, ResourceLoader loader, string key)
 => loader.Get <SpriteResource>(key).Render(context);
Example #2
0
 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);