[英]Using SkiaSharp how would one darken the entire image (excluding the background)
[英]How to load Image using Skiasharp in Tizen watch using C#
您可以使用 DirectoryInfo 获取资源目录路径
这是一个如何使用的示例
谢谢@Seungkenun Le。 根据他的评论,我编写了一个简单的函数来获取 Xamarin Tizen Watch 中的资源路径:
/// <summary>
/// Gets the resource path.
/// </summary>
/// <returns></returns>
internal static string GetResourcePath()
{
Tizen.Applications.Application app = Tizen.Applications.Application.Current;
if (app != null)
{
string resourcePath = app.DirectoryInfo.Resource;
if (Directory.Exists(resourcePath))
{
return resourcePath;
}
}
return string.Empty;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.