| 12345678910111213141516171819202122232425 |
- // Copyright (c) The Avalonia Project. All rights reserved.
- // Licensed under the MIT license. See licence.md file in the project root for full license information.
- using SkiaSharp;
- namespace Avalonia.Skia
- {
- /// <summary>
- /// A Skia implementation of a <see cref="Avalonia.Media.EllipseGeometry"/>.
- /// </summary>
- internal class EllipseGeometryImpl : GeometryImpl
- {
- public override Rect Bounds { get; }
- public override SKPath EffectivePath { get; }
- public EllipseGeometryImpl(Rect rect)
- {
- var path = new SKPath();
- path.AddOval(rect.ToSKRect());
- EffectivePath = path;
- Bounds = rect;
- }
- }
- }
|