Languages

Menu
Sites
Language
2D Graphic on samsung watch

Hi! I'm looking for a lib to draw a 2d graphics (just x, y, points, lines, numbers) on my app. The only libray that i found is SkiaSharp, but my app crashes every time a SkiaSharp element is in my xaml. There's a tutorial or samples that i can use?

Responses

5 Replies
Tizen .NET

Hi
Tutorial : https://developer.samsung.com/tizen/blog/en-us/2019/03/08/tizen190308
Sample : SkiaSharp2DSample
We hope it will be helpful to you.
Thanks.

feduss

Hi! Thanks for your fast reply :) Even if i've installed all the dependencies (SkiaSharp, SkiaSharp.Views, SkiaSharp.Views.Forms, SkiaSharp.HarfBuzz and HarfBuzzSharp), my app still crashed if i have skia view in a .xaml file or skia codes in .cs

 

Tizen .NET

Thank you for letting us know this issue.
We're going to analyze the cause of the issue.
You can temporarily modify SkiaSharp2DSample.csproj file as below:

in SkiaSharp2DSample.csproj file

<Project Sdk="Tizen.NET.Sdk/1.0.5">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>tizen40</TargetFramework>
    <RuntimeIdentifier>tizen-armel</RuntimeIdentifier>
  </PropertyGroup>

And then you build it with VS2019 and execute SkiaSharp2DSample app on Galaxy Watch.

 

Tizen .NET

[Updated]

<Project Sdk="Tizen.NET.Sdk/1.0.5">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>tizen40</TargetFramework>
    <CopyLocalRuntimeTargetAssets>true</CopyLocalRuntimeTargetAssets>
  </PropertyGroup>

Regarding this issue, the bug patch will be fixed in the next release of Tizen.NET.Sdk.
Thanks.

 

feduss
Hi! With this fix, the sample works, but skia in my project keeps crashing my app with segmentation fault :/