SkiaSharp.Elements 1.0.0

Simple way to draw and interact with elements using the library SkiaSharp.
Compatible with Xamarin Forms

There is a newer version of this package available.
See the version list below for details.
Install-Package SkiaSharp.Elements -Version 1.0.0
dotnet add package SkiaSharp.Elements --version 1.0.0
<PackageReference Include="SkiaSharp.Elements" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SkiaSharp.Elements --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Elements

  • Rectangle
  • Ellipse
  • Image
  • Text
  • Polygon
  • Line
  • Group

Drawing Rectangle

var rectangle = new SkiaSharp.Elements.Rectangle(SKRect.Create(20, 20, 100, 100))
{
    FillColor = SKColors.SpringGreen
};
canvas.Elements.Add(rectangle);

Transformation

var rectangle = new SkiaSharp.Elements.Rectangle(SKRect.Create(120, 150, 100, 100))
{
    FillColor = SKColors.SpringGreen
    Transformation = SKMatrix.MakeRotationDegrees(45)
};
canvas.Elements.Add(rectangle);

Animation

new Animation((value) =>
{
    rectangle.Transformation = SKMatrix.MakeRotationDegrees(360 * (float)value);
})
.Commit(this, "Anim", length: 2000, easing: Easing.SpringOut);


Samples

Get sample https://github.com/FelipeNicoletto/SkiaSharp.Elements/tree/master/Samples


Elements

  • Rectangle
  • Ellipse
  • Image
  • Text
  • Polygon
  • Line
  • Group

Drawing Rectangle

var rectangle = new SkiaSharp.Elements.Rectangle(SKRect.Create(20, 20, 100, 100))
{
    FillColor = SKColors.SpringGreen
};
canvas.Elements.Add(rectangle);

Transformation

var rectangle = new SkiaSharp.Elements.Rectangle(SKRect.Create(120, 150, 100, 100))
{
    FillColor = SKColors.SpringGreen
    Transformation = SKMatrix.MakeRotationDegrees(45)
};
canvas.Elements.Add(rectangle);

Animation

new Animation((value) =>
{
    rectangle.Transformation = SKMatrix.MakeRotationDegrees(360 * (float)value);
})
.Commit(this, "Anim", length: 2000, easing: Easing.SpringOut);


Samples

Get sample https://github.com/FelipeNicoletto/SkiaSharp.Elements/tree/master/Samples


This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.2 635 4/22/2018
1.0.1 360 2/4/2018
1.0.0 649 10/2/2017