351
public void DrawImageFromAssembly (string resource, double x, double y, double width, double height)
354
using (SVGImage image = new SVGImage (System.Reflection.Assembly.GetCallingAssembly (), resource))
356
DrawImage (image, x, y, width, height);
365
public void DrawImageFromFile (string filename, double x, double y, double width, double height)
368
using (SVGImage image = new SVGImage (filename))
370
DrawImage (image, x, y, width, height);
379
void DrawImage (SVGImage image, double x, double y, double width, double height)
383
Scale (width / image.Width, height / image.Height);
384
image.RenderToCairo (Handle);