diff options
Diffstat (limited to 'src/SvgPicture.cs')
| -rw-r--r-- | src/SvgPicture.cs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/SvgPicture.cs b/src/SvgPicture.cs index f676a497..1e03010d 100644 --- a/src/SvgPicture.cs +++ b/src/SvgPicture.cs @@ -26,7 +26,7 @@ using System; using System.IO; -using Cairo; +using vkvg; namespace Crow { @@ -95,16 +95,16 @@ namespace Crow widthRatio = heightRatio; } - using (ImageSurface tmp = new ImageSurface (Format.Argb32, bounds.Width, bounds.Height)) { - 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); - - hSVG.RenderCairo (gr); - } - ctx.SetSource (tmp); - } +// using (Surface tmp = new Surface (bounds.Width, bounds.Height)) { +// 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); +// +// hSVG.RenderCairo (gr); +// } +// ctx.SetSource (tmp); +// } } #endregion |