aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/SvgPicture.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-05-07 08:12:56 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-05-07 08:12:56 +0200
commit6b02331dfe7c6d8290c136ce20b4a7c655b47aae (patch)
treeda414ee19018edaf1d37b8fd7a6e4fe1f86edecd /src/SvgPicture.cs
parentf3344a78e511213d235e4c91bf507264fd41ac0d (diff)
first tests with vkvg as backendvkvg
Diffstat (limited to 'src/SvgPicture.cs')
-rw-r--r--src/SvgPicture.cs22
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