diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-04 21:04:32 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-04 21:04:32 +0100 |
| commit | 56383b7cadef47e34ba7dce0a676082544bccac7 (patch) | |
| tree | 317c935914ff270949fe0c8a32c2d042a05edf71 /src/SvgPicture.cs | |
| parent | 2d93d89034894255917733d9a38bfd7998805f4c (diff) | |
:book: tutorials and some small improvements (iml fragment loading helpers
Diffstat (limited to 'src/SvgPicture.cs')
| -rw-r--r-- | src/SvgPicture.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SvgPicture.cs b/src/SvgPicture.cs index b4026852..01aaeb5f 100644 --- a/src/SvgPicture.cs +++ b/src/SvgPicture.cs @@ -91,7 +91,7 @@ namespace Crow } using (ImageSurface tmp = new ImageSurface (Format.Argb32, bounds.Width, bounds.Height)) { - using (Cairo.Context gr = new Context (tmp)) { + using (Context gr = new Context (tmp)) { gr.Translate (bounds.Left, bounds.Top); gr.Scale (widthRatio, heightRatio); gr.Translate ((bounds.Width/widthRatio - Dimensions.Width)/2, (bounds.Height/heightRatio - Dimensions.Height)/2); @@ -110,7 +110,7 @@ namespace Crow /// <param name="gr">drawing Backend context</param> /// <param name="rect">bounds of the target surface to paint</param> /// <param name="subPart">limit rendering to svg part named 'subPart'</param> - public override void Paint (Cairo.Context gr, Rectangle rect, string subPart = "") + public override void Paint (Context gr, Rectangle rect, string subPart = "") { float widthRatio = 1f; float heightRatio = 1f; |