Beispiel #1
0
 public override void Dispose()
 {
     if (_path != null)
     {
         _path.Dispose();
         _path = null;
     }
 }
Beispiel #2
0
 public override void Dispose()
 {
     if (Path != null)
     {
         Path.Dispose();
         Path = null;
     }
 }
Beispiel #3
0
 internal StaticString(VGDevice device, IEnumerable<KeyValuePair<Vector2, VGPath>> glyphs)
     : base(null)
 {
     VGPath result = new VGPath();
     foreach (var g in glyphs)
     {
         var p = g.Value.Clone();
         p.Offset(g.Key);
         result.Append(p);
     }
     _path = device.PreparePath(result, VGPaintMode.Fill);
     Extents = _path.Extents;
 }
Beispiel #4
0
 public PathGlyph(VGPreparedPath path, Vector2 escape)
     : base(escape)
 {
     Path = path;
 }