Remove the old demo bits
Двоичные данные
samples/SharedDemo/adobe-dng.dng
Двоичные данные
samples/SharedDemo/baboon.png
До Ширина: | Высота: | Размер: 632 KiB |
Двоичные данные
samples/SharedDemo/color-wheel.png
До Ширина: | Высота: | Размер: 9.1 KiB |
Двоичные данные
samples/SharedDemo/content-font.ttf
Двоичные данные
samples/SharedDemo/embedded-font.ttf
Двоичные данные
samples/SharedDemo/nine-patch.png
До Ширина: | Высота: | Размер: 48 KiB |
|
@ -1,8 +0,0 @@
|
||||||
<Application
|
|
||||||
x:Class="Skia.UWP.Demo.App"
|
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
xmlns:local="using:Skia.UWP.Demo"
|
|
||||||
RequestedTheme="Light">
|
|
||||||
|
|
||||||
</Application>
|
|
|
@ -1,108 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Runtime.InteropServices.WindowsRuntime;
|
|
||||||
using Windows.ApplicationModel;
|
|
||||||
using Windows.ApplicationModel.Activation;
|
|
||||||
using Windows.Foundation;
|
|
||||||
using Windows.Foundation.Collections;
|
|
||||||
using Windows.UI.Xaml;
|
|
||||||
using Windows.UI.Xaml.Controls;
|
|
||||||
using Windows.UI.Xaml.Controls.Primitives;
|
|
||||||
using Windows.UI.Xaml.Data;
|
|
||||||
using Windows.UI.Xaml.Input;
|
|
||||||
using Windows.UI.Xaml.Media;
|
|
||||||
using Windows.UI.Xaml.Navigation;
|
|
||||||
|
|
||||||
namespace Skia.UWP.Demo
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Provides application-specific behavior to supplement the default Application class.
|
|
||||||
/// </summary>
|
|
||||||
sealed partial class App : Application
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Initializes the singleton application object. This is the first line of authored code
|
|
||||||
/// executed, and as such is the logical equivalent of main() or WinMain().
|
|
||||||
/// </summary>
|
|
||||||
public App()
|
|
||||||
{
|
|
||||||
Microsoft.ApplicationInsights.WindowsAppInitializer.InitializeAsync(
|
|
||||||
Microsoft.ApplicationInsights.WindowsCollectors.Metadata |
|
|
||||||
Microsoft.ApplicationInsights.WindowsCollectors.Session);
|
|
||||||
this.InitializeComponent();
|
|
||||||
this.Suspending += OnSuspending;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Invoked when the application is launched normally by the end user. Other entry points
|
|
||||||
/// will be used such as when the application is launched to open a specific file.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="e">Details about the launch request and process.</param>
|
|
||||||
protected override void OnLaunched(LaunchActivatedEventArgs e)
|
|
||||||
{
|
|
||||||
|
|
||||||
#if DEBUG
|
|
||||||
if (System.Diagnostics.Debugger.IsAttached)
|
|
||||||
{
|
|
||||||
this.DebugSettings.EnableFrameRateCounter = true;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Frame rootFrame = Window.Current.Content as Frame;
|
|
||||||
|
|
||||||
// Do not repeat app initialization when the Window already has content,
|
|
||||||
// just ensure that the window is active
|
|
||||||
if (rootFrame == null)
|
|
||||||
{
|
|
||||||
// Create a Frame to act as the navigation context and navigate to the first page
|
|
||||||
rootFrame = new Frame();
|
|
||||||
|
|
||||||
rootFrame.NavigationFailed += OnNavigationFailed;
|
|
||||||
|
|
||||||
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
|
|
||||||
{
|
|
||||||
//TODO: Load state from previously suspended application
|
|
||||||
}
|
|
||||||
|
|
||||||
// Place the frame in the current Window
|
|
||||||
Window.Current.Content = rootFrame;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (rootFrame.Content == null)
|
|
||||||
{
|
|
||||||
// When the navigation stack isn't restored navigate to the first page,
|
|
||||||
// configuring the new page by passing required information as a navigation
|
|
||||||
// parameter
|
|
||||||
rootFrame.Navigate(typeof(MainPage), e.Arguments);
|
|
||||||
}
|
|
||||||
// Ensure the current window is active
|
|
||||||
Window.Current.Activate();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Invoked when Navigation to a certain page fails
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender">The Frame which failed navigation</param>
|
|
||||||
/// <param name="e">Details about the navigation failure</param>
|
|
||||||
void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
|
|
||||||
{
|
|
||||||
throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Invoked when application execution is being suspended. Application state is saved
|
|
||||||
/// without knowing whether the application will be terminated or resumed with the contents
|
|
||||||
/// of memory still intact.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender">The source of the suspend request.</param>
|
|
||||||
/// <param name="e">Details about the suspend request.</param>
|
|
||||||
private void OnSuspending(object sender, SuspendingEventArgs e)
|
|
||||||
{
|
|
||||||
var deferral = e.SuspendingOperation.GetDeferral();
|
|
||||||
//TODO: Save application state and stop any background activity
|
|
||||||
deferral.Complete();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Двоичные данные
samples/Skia.UWP.Demo/Assets/LockScreenLogo.scale-200.png
До Ширина: | Высота: | Размер: 1.2 KiB |
Двоичные данные
samples/Skia.UWP.Demo/Assets/SplashScreen.scale-200.png
До Ширина: | Высота: | Размер: 17 KiB |
Двоичные данные
samples/Skia.UWP.Demo/Assets/Square150x150Logo.scale-200.png
До Ширина: | Высота: | Размер: 7.0 KiB |
Двоичные данные
samples/Skia.UWP.Demo/Assets/Square44x44Logo.scale-200.png
До Ширина: | Высота: | Размер: 2.2 KiB |
До Ширина: | Высота: | Размер: 569 B |
Двоичные данные
samples/Skia.UWP.Demo/Assets/StoreLogo.png
До Ширина: | Высота: | Размер: 1.2 KiB |
Двоичные данные
samples/Skia.UWP.Demo/Assets/Wide310x150Logo.scale-200.png
До Ширина: | Высота: | Размер: 7.8 KiB |
|
@ -1,25 +0,0 @@
|
||||||
<Page
|
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
xmlns:local="using:Skia.UWP.Demo"
|
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
||||||
xmlns:Demo="using:Skia.WindowsDesktop.Demo"
|
|
||||||
x:Class="Skia.UWP.Demo.MainPage"
|
|
||||||
mc:Ignorable="d">
|
|
||||||
|
|
||||||
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="Auto"/>
|
|
||||||
<RowDefinition/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
|
|
||||||
<ComboBox x:Name="comboBox" HorizontalAlignment="Stretch" Grid.Row="0" Grid.Column="0" />
|
|
||||||
|
|
||||||
<Demo:SkiaView x:Name="skiaView" Grid.Row="1" Grid.Column="0" />
|
|
||||||
|
|
||||||
</Grid>
|
|
||||||
</Page>
|
|
|
@ -1,63 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Runtime.InteropServices.WindowsRuntime;
|
|
||||||
using Windows.Foundation;
|
|
||||||
using Windows.Foundation.Collections;
|
|
||||||
using Windows.UI;
|
|
||||||
using Windows.UI.Xaml;
|
|
||||||
using Windows.UI.Xaml.Controls;
|
|
||||||
using Windows.UI.Xaml.Controls.Primitives;
|
|
||||||
using Windows.UI.Xaml.Data;
|
|
||||||
using Windows.UI.Xaml.Input;
|
|
||||||
using Windows.UI.Xaml.Media;
|
|
||||||
using Windows.UI.Xaml.Navigation;
|
|
||||||
|
|
||||||
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409
|
|
||||||
|
|
||||||
namespace Skia.UWP.Demo
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
|
||||||
/// </summary>
|
|
||||||
public sealed partial class MainPage : Page
|
|
||||||
{
|
|
||||||
public MainPage()
|
|
||||||
{
|
|
||||||
this.InitializeComponent();
|
|
||||||
|
|
||||||
if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent(typeof(Windows.UI.ViewManagement.StatusBar).FullName))
|
|
||||||
{
|
|
||||||
var statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView();
|
|
||||||
statusBar.BackgroundColor = Color.FromArgb(0xff, 0x34, 0x98, 0xdb);
|
|
||||||
statusBar.ForegroundColor = Colors.White;
|
|
||||||
statusBar.BackgroundOpacity = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
string fontName = "content-font.ttf";
|
|
||||||
var install = Windows.ApplicationModel.Package.Current.InstalledLocation;
|
|
||||||
SkiaSharp.Demos.CustomFontPath = Path.Combine(install.Path, fontName);
|
|
||||||
SkiaSharp.Demos.WorkingDirectory = Windows.Storage.ApplicationData.Current.LocalFolder.Path;
|
|
||||||
SkiaSharp.Demos.OpenFileDelegate =
|
|
||||||
async name =>
|
|
||||||
{
|
|
||||||
var file = await Windows.Storage.ApplicationData.Current.LocalFolder.GetFileAsync(name);
|
|
||||||
await Windows.System.Launcher.LaunchFileAsync(file);
|
|
||||||
};
|
|
||||||
|
|
||||||
var items = SkiaSharp.Demos.SamplesForPlatform(SkiaSharp.Demos.Platform.UWP);
|
|
||||||
foreach (var item in items)
|
|
||||||
{
|
|
||||||
comboBox.Items.Add(item);
|
|
||||||
}
|
|
||||||
|
|
||||||
comboBox.SelectionChanged += (sender, e) =>
|
|
||||||
{
|
|
||||||
skiaView.Sample = SkiaSharp.Demos.GetSample((string)comboBox.SelectedItem);
|
|
||||||
};
|
|
||||||
|
|
||||||
comboBox.SelectedIndex = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,369 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<StoreAssociation xmlns="http://schemas.microsoft.com/appx/2010/storeassociation">
|
|
||||||
<Publisher>CN=B0BB84CF-0033-49C8-BB54-7D95062245A2</Publisher>
|
|
||||||
<PublisherDisplayName>.NET Development Addict</PublisherDisplayName>
|
|
||||||
<GeneratePackageHash>http://www.w3.org/2001/04/xmlenc#sha256</GeneratePackageHash>
|
|
||||||
<SupportedLocales>
|
|
||||||
<Language Code="af" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="af-za" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="am" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="am-et" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ar" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ar-ae" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ar-bh" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ar-dz" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ar-eg" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ar-iq" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ar-jo" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ar-kw" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ar-lb" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ar-ly" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ar-ma" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ar-om" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ar-qa" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ar-sa" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ar-sy" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ar-tn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ar-ye" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="as" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="as-in" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="az" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="az-arab" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="az-arab-az" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="az-cyrl" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="az-cyrl-az" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="az-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="az-latn-az" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="be" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="be-by" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="bg" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="bg-bg" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="bn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="bn-bd" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="bn-in" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="bs" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="bs-cyrl" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="bs-cyrl-ba" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="bs-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="bs-latn-ba" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ca" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ca-es" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ca-es-valencia" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="chr-cher" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="chr-cher-us" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="chr-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="cs" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="cs-cz" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="cy" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="cy-gb" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="da" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="da-dk" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="de" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="de-at" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="de-ch" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="de-de" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="de-li" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="de-lu" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="el" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="el-gr" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-011" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-014" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-018" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-021" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-029" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-053" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-au" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-bz" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-ca" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-gb" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-hk" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-id" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-ie" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-in" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-jm" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-kz" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-mt" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-my" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-nz" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-ph" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-pk" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-sg" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-tt" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-us" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-vn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-za" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="en-zw" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-019" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-419" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-ar" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-bo" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-cl" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-co" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-cr" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-do" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-ec" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-es" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-gt" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-hn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-mx" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-ni" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-pa" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-pe" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-pr" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-py" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-sv" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-us" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-uy" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="es-ve" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="et" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="et-ee" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="eu" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="eu-es" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fa" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fa-ir" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fi" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fi-fi" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fil" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fil-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fil-ph" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr-011" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr-015" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr-021" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr-029" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr-155" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr-be" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr-ca" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr-cd" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr-ch" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr-ci" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr-cm" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr-fr" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr-ht" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr-lu" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr-ma" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr-mc" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr-ml" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="fr-re" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="frc-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="frp-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ga" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ga-ie" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="gd-gb" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="gd-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="gl" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="gl-es" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="gu" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="gu-in" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ha" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ha-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ha-latn-ng" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="he" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="he-il" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="hi" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="hi-in" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="hr" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="hr-ba" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="hr-hr" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="hu" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="hu-hu" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="hy" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="hy-am" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="id" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="id-id" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ig-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ig-ng" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="is" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="is-is" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="it" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="it-ch" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="it-it" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="iu-cans" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="iu-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="iu-latn-ca" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ja" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ja-jp" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ka" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ka-ge" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="kk" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="kk-kz" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="km" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="km-kh" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="kn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="kn-in" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ko" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ko-kr" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="kok" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="kok-in" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ku-arab" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ku-arab-iq" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ky-cyrl" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ky-kg" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="lb" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="lb-lu" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="lo" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="lo-la" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="lt" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="lt-lt" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="lv" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="lv-lv" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="mi" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="mi-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="mi-nz" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="mk" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="mk-mk" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ml" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ml-in" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="mn-cyrl" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="mn-mn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="mn-mong" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="mn-phag" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="mr" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="mr-in" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ms" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ms-bn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ms-my" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="mt" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="mt-mt" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="nb" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="nb-no" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ne" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ne-np" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="nl" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="nl-be" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="nl-nl" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="nn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="nn-no" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="no" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="no-no" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="nso" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="nso-za" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="or" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="or-in" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="pa" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="pa-arab" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="pa-arab-pk" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="pa-deva" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="pa-in" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="pl" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="pl-pl" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="prs" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="prs-af" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="prs-arab" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="pt" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="pt-br" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="pt-pt" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="quc-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="qut-gt" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="qut-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="quz" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="quz-bo" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="quz-ec" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="quz-pe" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ro" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ro-ro" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ru" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ru-ru" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="rw" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="rw-rw" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sd-arab" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sd-arab-pk" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sd-deva" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="si" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="si-lk" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sk" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sk-sk" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sl" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sl-si" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sq" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sq-al" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sr" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sr-cyrl" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sr-cyrl-ba" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sr-cyrl-cs" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sr-cyrl-me" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sr-cyrl-rs" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sr-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sr-latn-ba" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sr-latn-cs" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sr-latn-me" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sr-latn-rs" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sv" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sv-fi" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sv-se" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sw" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="sw-ke" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ta" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ta-in" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="te" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="te-in" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="tg-arab" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="tg-cyrl" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="tg-cyrl-tj" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="tg-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="th" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="th-th" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ti" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ti-et" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="tk-cyrl" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="tk-cyrl-tr" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="tk-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="tk-latn-tr" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="tk-tm" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="tn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="tn-bw" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="tn-za" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="tr" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="tr-tr" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="tt-arab" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="tt-cyrl" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="tt-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="tt-ru" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ug-arab" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ug-cn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ug-cyrl" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ug-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="uk" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="uk-ua" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ur" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="ur-pk" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="uz" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="uz-cyrl" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="uz-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="uz-latn-uz" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="vi" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="vi-vn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="wo" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="wo-sn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="xh" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="xh-za" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="yo-latn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="yo-ng" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="zh" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="zh-cn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="zh-hans" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="zh-hans-cn" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="zh-hans-sg" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="zh-hant" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="zh-hant-hk" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="zh-hant-mo" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="zh-hant-tw" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="zh-hk" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="zh-mo" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="zh-sg" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="zh-tw" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="zu" InMinimumRequirementSet="true" />
|
|
||||||
<Language Code="zu-za" InMinimumRequirementSet="true" />
|
|
||||||
</SupportedLocales>
|
|
||||||
<ProductReservedInfo>
|
|
||||||
<MainPackageIdentityName>51681.NETDevelopmentAddic.Skia.UWP.Demo</MainPackageIdentityName>
|
|
||||||
<ReservedNames>
|
|
||||||
<ReservedName>Skia.UWP.Demo</ReservedName>
|
|
||||||
<ReservedName>SkiaSharp for Windows</ReservedName>
|
|
||||||
</ReservedNames>
|
|
||||||
</ProductReservedInfo>
|
|
||||||
<AccountPackageIdentityNames />
|
|
||||||
<PackageInfoList LandingUrl="https://developer.microsoft.com/dashboard/Application?appId=9NBLGGH51856" />
|
|
||||||
</StoreAssociation>
|
|
|
@ -1,28 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
|
|
||||||
<Identity Name="51681.NETDevelopmentAddic.Skia.UWP.Demo" Publisher="CN=B0BB84CF-0033-49C8-BB54-7D95062245A2" Version="1.54.0.1" />
|
|
||||||
<mp:PhoneIdentity PhoneProductId="ba3af39c-4820-4731-a149-e78facd8bdff" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
|
|
||||||
<Properties>
|
|
||||||
<DisplayName>SkiaSharp for Windows</DisplayName>
|
|
||||||
<PublisherDisplayName>.NET Development Addict</PublisherDisplayName>
|
|
||||||
<Logo>Assets\StoreLogo.png</Logo>
|
|
||||||
</Properties>
|
|
||||||
<Dependencies>
|
|
||||||
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
|
|
||||||
</Dependencies>
|
|
||||||
<Resources>
|
|
||||||
<Resource Language="x-generate" />
|
|
||||||
</Resources>
|
|
||||||
<Applications>
|
|
||||||
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="Skia.UWP.Demo.App">
|
|
||||||
<uap:VisualElements DisplayName="SkiaSharp for Windows" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="This is a sample app demonstrating some of the many features of SkiaSharp. The source code is available at: http://github.com/mono/SkiaSharp" BackgroundColor="transparent">
|
|
||||||
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png">
|
|
||||||
</uap:DefaultTile>
|
|
||||||
<uap:SplashScreen Image="Assets\SplashScreen.png" BackgroundColor="#f8f8f8" />
|
|
||||||
</uap:VisualElements>
|
|
||||||
</Application>
|
|
||||||
</Applications>
|
|
||||||
<Capabilities>
|
|
||||||
<Capability Name="internetClient" />
|
|
||||||
</Capabilities>
|
|
||||||
</Package>
|
|
|
@ -1,29 +0,0 @@
|
||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
|
||||||
// set of attributes. Change these attribute values to modify the information
|
|
||||||
// associated with an assembly.
|
|
||||||
[assembly: AssemblyTitle("Skia.UWP.Demo")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("")]
|
|
||||||
[assembly: AssemblyProduct("Skia.UWP.Demo")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © 2016")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// Version information for an assembly consists of the following four values:
|
|
||||||
//
|
|
||||||
// Major Version
|
|
||||||
// Minor Version
|
|
||||||
// Build Number
|
|
||||||
// Revision
|
|
||||||
//
|
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
|
||||||
// by using the '*' as shown below:
|
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
||||||
[assembly: ComVisible(false)]
|
|
|
@ -1,31 +0,0 @@
|
||||||
<!--
|
|
||||||
This file contains Runtime Directives used by .NET Native. The defaults here are suitable for most
|
|
||||||
developers. However, you can modify these parameters to modify the behavior of the .NET Native
|
|
||||||
optimizer.
|
|
||||||
|
|
||||||
Runtime Directives are documented at http://go.microsoft.com/fwlink/?LinkID=391919
|
|
||||||
|
|
||||||
To fully enable reflection for App1.MyClass and all of its public/private members
|
|
||||||
<Type Name="App1.MyClass" Dynamic="Required All"/>
|
|
||||||
|
|
||||||
To enable dynamic creation of the specific instantiation of AppClass<T> over System.Int32
|
|
||||||
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
|
|
||||||
|
|
||||||
Using the Namespace directive to apply reflection policy to all the types in a particular namespace
|
|
||||||
<Namespace Name="DataClasses.ViewModels" Seralize="All" />
|
|
||||||
-->
|
|
||||||
|
|
||||||
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
|
|
||||||
<Application>
|
|
||||||
<!--
|
|
||||||
An Assembly element with Name="*Application*" applies to all assemblies in
|
|
||||||
the application package. The asterisks are not wildcards.
|
|
||||||
-->
|
|
||||||
<Assembly Name="*Application*" Dynamic="Required All" />
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Add your application specific runtime directives here. -->
|
|
||||||
|
|
||||||
|
|
||||||
</Application>
|
|
||||||
</Directives>
|
|
|
@ -1,175 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">x64</Platform>
|
|
||||||
<ProjectGuid>{18C7BCB4-4762-4A99-91BE-E6431C3E561E}</ProjectGuid>
|
|
||||||
<OutputType>AppContainerExe</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>Skia.UWP.Demo</RootNamespace>
|
|
||||||
<AssemblyName>Skia.UWP.Demo</AssemblyName>
|
|
||||||
<DefaultLanguage>en-US</DefaultLanguage>
|
|
||||||
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
|
|
||||||
<TargetPlatformVersion>10.0.10586.0</TargetPlatformVersion>
|
|
||||||
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
|
|
||||||
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
|
||||||
<PackageCertificateKeyFile>..\AppStoreCertificates\Skia.UWP.Demo_StoreKey.pfx</PackageCertificateKeyFile>
|
|
||||||
<PackageCertificateThumbprint>77BB456C567B1501535FACDA67D559B9513862C1</PackageCertificateThumbprint>
|
|
||||||
<AppxAutoIncrementPackageRevision>False</AppxAutoIncrementPackageRevision>
|
|
||||||
<AppxBundle>Always</AppxBundle>
|
|
||||||
<AppxBundlePlatforms>x86|x64|arm</AppxBundlePlatforms>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
||||||
<NoWarn>;2008</NoWarn>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<Prefer32Bit>true</Prefer32Bit>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
|
||||||
<OutputPath>bin\x86\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<NoWarn>;2008</NoWarn>
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<Prefer32Bit>true</Prefer32Bit>
|
|
||||||
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<OutputPath>bin\ARM\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
||||||
<NoWarn>;2008</NoWarn>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<PlatformTarget>ARM</PlatformTarget>
|
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<Prefer32Bit>true</Prefer32Bit>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
|
|
||||||
<OutputPath>bin\ARM\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<NoWarn>;2008</NoWarn>
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<PlatformTarget>ARM</PlatformTarget>
|
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<Prefer32Bit>true</Prefer32Bit>
|
|
||||||
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<OutputPath>bin\x64\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
||||||
<NoWarn>;2008</NoWarn>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<PlatformTarget>x64</PlatformTarget>
|
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<Prefer32Bit>true</Prefer32Bit>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
|
||||||
<OutputPath>bin\x64\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<NoWarn>;2008</NoWarn>
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<PlatformTarget>x64</PlatformTarget>
|
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<Prefer32Bit>true</Prefer32Bit>
|
|
||||||
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
|
|
||||||
<EmbeddedResource Include="..\SharedDemo\baboon.png">
|
|
||||||
<Link>baboon.png</Link>
|
|
||||||
</EmbeddedResource>
|
|
||||||
<EmbeddedResource Include="..\SharedDemo\color-wheel.png">
|
|
||||||
<Link>color-wheel.png</Link>
|
|
||||||
</EmbeddedResource>
|
|
||||||
<EmbeddedResource Include="..\SharedDemo\adobe-dng.dng">
|
|
||||||
<Link>adobe-dng.dng</Link>
|
|
||||||
</EmbeddedResource>
|
|
||||||
<Content Include="..\SharedDemo\content-font.ttf">
|
|
||||||
<Link>content-font.ttf</Link>
|
|
||||||
</Content>
|
|
||||||
<EmbeddedResource Include="..\SharedDemo\embedded-font.ttf">
|
|
||||||
<Link>embedded-font.ttf</Link>
|
|
||||||
</EmbeddedResource>
|
|
||||||
<EmbeddedResource Include="..\SharedDemo\nine-patch.png">
|
|
||||||
<Link>nine-patch.png</Link>
|
|
||||||
</EmbeddedResource>
|
|
||||||
<None Include="project.json" />
|
|
||||||
<None Include="..\AppStoreCertificates\Skia.UWP.Demo_StoreKey.pfx">
|
|
||||||
<Link>Skia.UWP.Demo_StoreKey.pfx</Link>
|
|
||||||
</None>
|
|
||||||
<None Include="Skia.UWP.Demo_TemporaryKey.pfx" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="..\SharedDemo\SkiaSharp.Demos.cs">
|
|
||||||
<Link>SkiaSharp.Demos.cs</Link>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="App.xaml.cs">
|
|
||||||
<DependentUpon>App.xaml</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="MainPage.xaml.cs">
|
|
||||||
<DependentUpon>MainPage.xaml</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
<Compile Include="SkiaView.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<AppxManifest Include="Package.appxmanifest">
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
</AppxManifest>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="Package.StoreAssociation.xml" />
|
|
||||||
<Content Include="Properties\Default.rd.xml" />
|
|
||||||
<Content Include="Assets\LockScreenLogo.scale-200.png" />
|
|
||||||
<Content Include="Assets\SplashScreen.scale-200.png" />
|
|
||||||
<Content Include="Assets\Square150x150Logo.scale-200.png" />
|
|
||||||
<Content Include="Assets\Square44x44Logo.scale-200.png" />
|
|
||||||
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
|
|
||||||
<Content Include="Assets\StoreLogo.png" />
|
|
||||||
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ApplicationDefinition Include="App.xaml">
|
|
||||||
<Generator>MSBuild:Compile</Generator>
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
</ApplicationDefinition>
|
|
||||||
<Page Include="MainPage.xaml">
|
|
||||||
<Generator>MSBuild:Compile</Generator>
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
</Page>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<SDKReference Include="WindowsMobile, Version=10.0.10586.0">
|
|
||||||
<Name>Windows Mobile Extensions for the UWP</Name>
|
|
||||||
</SDKReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' ">
|
|
||||||
<VisualStudioVersion>14.0</VisualStudioVersion>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
|
||||||
</Target>
|
|
||||||
-->
|
|
||||||
</Project>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
|
||||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<PropertyGroup Condition="'$(NuGetPackageRoot)' == ''">
|
|
||||||
<NuGetPackageRoot>$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ImportGroup>
|
|
||||||
<Import Project="$(NuGetPackageRoot)\SkiaSharp\1.54.1\build\uap10.0\SkiaSharp.targets" Condition="Exists('$(NuGetPackageRoot)\SkiaSharp\1.54.1\build\uap10.0\SkiaSharp.targets')" />
|
|
||||||
</ImportGroup>
|
|
||||||
</Project>
|
|
|
@ -1,40 +0,0 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
||||||
# Visual Studio 14
|
|
||||||
VisualStudioVersion = 14.0.25123.0
|
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Skia.UWP.Demo", "Skia.UWP.Demo.csproj", "{18C7BCB4-4762-4A99-91BE-E6431C3E561E}"
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Debug|ARM = Debug|ARM
|
|
||||||
Debug|x64 = Debug|x64
|
|
||||||
Debug|x86 = Debug|x86
|
|
||||||
Release|ARM = Release|ARM
|
|
||||||
Release|x64 = Release|x64
|
|
||||||
Release|x86 = Release|x86
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{18C7BCB4-4762-4A99-91BE-E6431C3E561E}.Debug|ARM.ActiveCfg = Debug|ARM
|
|
||||||
{18C7BCB4-4762-4A99-91BE-E6431C3E561E}.Debug|ARM.Build.0 = Debug|ARM
|
|
||||||
{18C7BCB4-4762-4A99-91BE-E6431C3E561E}.Debug|ARM.Deploy.0 = Debug|ARM
|
|
||||||
{18C7BCB4-4762-4A99-91BE-E6431C3E561E}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{18C7BCB4-4762-4A99-91BE-E6431C3E561E}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{18C7BCB4-4762-4A99-91BE-E6431C3E561E}.Debug|x64.Deploy.0 = Debug|x64
|
|
||||||
{18C7BCB4-4762-4A99-91BE-E6431C3E561E}.Debug|x86.ActiveCfg = Debug|x86
|
|
||||||
{18C7BCB4-4762-4A99-91BE-E6431C3E561E}.Debug|x86.Build.0 = Debug|x86
|
|
||||||
{18C7BCB4-4762-4A99-91BE-E6431C3E561E}.Debug|x86.Deploy.0 = Debug|x86
|
|
||||||
{18C7BCB4-4762-4A99-91BE-E6431C3E561E}.Release|ARM.ActiveCfg = Release|ARM
|
|
||||||
{18C7BCB4-4762-4A99-91BE-E6431C3E561E}.Release|ARM.Build.0 = Release|ARM
|
|
||||||
{18C7BCB4-4762-4A99-91BE-E6431C3E561E}.Release|ARM.Deploy.0 = Release|ARM
|
|
||||||
{18C7BCB4-4762-4A99-91BE-E6431C3E561E}.Release|x64.ActiveCfg = Release|x64
|
|
||||||
{18C7BCB4-4762-4A99-91BE-E6431C3E561E}.Release|x64.Build.0 = Release|x64
|
|
||||||
{18C7BCB4-4762-4A99-91BE-E6431C3E561E}.Release|x64.Deploy.0 = Release|x64
|
|
||||||
{18C7BCB4-4762-4A99-91BE-E6431C3E561E}.Release|x86.ActiveCfg = Release|x86
|
|
||||||
{18C7BCB4-4762-4A99-91BE-E6431C3E561E}.Release|x86.Build.0 = Release|x86
|
|
||||||
{18C7BCB4-4762-4A99-91BE-E6431C3E561E}.Release|x86.Deploy.0 = Release|x86
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
Двоичные данные
samples/Skia.UWP.Demo/Skia.UWP.Demo_TemporaryKey.pfx
|
@ -1,98 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices.WindowsRuntime;
|
|
||||||
using Windows.UI.Xaml.Controls;
|
|
||||||
using Windows.UI.Xaml.Input;
|
|
||||||
using Windows.UI.Xaml.Media;
|
|
||||||
using Windows.UI.Xaml.Media.Imaging;
|
|
||||||
|
|
||||||
using SkiaSharp;
|
|
||||||
using Windows.UI.Xaml;
|
|
||||||
using Windows.Graphics.Display;
|
|
||||||
using System.IO;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
namespace Skia.WindowsDesktop.Demo
|
|
||||||
{
|
|
||||||
public partial class SkiaView : Canvas
|
|
||||||
{
|
|
||||||
private Demos.Sample sample;
|
|
||||||
|
|
||||||
public SkiaView()
|
|
||||||
{
|
|
||||||
SizeChanged += OnSizeChanged;
|
|
||||||
Tapped += OnTapped;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void UpdateBitmap()
|
|
||||||
{
|
|
||||||
var resolutionScale = DisplayInformation.GetForCurrentView().ResolutionScale;
|
|
||||||
var screenScale = (float)resolutionScale / 100.0f;
|
|
||||||
var width = (int)(ActualWidth * screenScale);
|
|
||||||
var height = (int)(ActualHeight * screenScale);
|
|
||||||
|
|
||||||
if (width == 0 || height == 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
IntPtr buff = Marshal.AllocCoTaskMem(width * height * 4);
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
using (var surface = SKSurface.Create(width, height, SKImageInfo.PlatformColorType, SKAlphaType.Premul, buff, width * 4))
|
|
||||||
{
|
|
||||||
var skcanvas = surface.Canvas;
|
|
||||||
|
|
||||||
skcanvas.Scale(screenScale, screenScale);
|
|
||||||
|
|
||||||
sample?.Method(skcanvas, (int)ActualWidth, (int)ActualHeight);
|
|
||||||
}
|
|
||||||
|
|
||||||
var pixels = new byte[width * height * 4];
|
|
||||||
Marshal.Copy(buff, pixels, 0, pixels.Length);
|
|
||||||
|
|
||||||
var bitmap = new WriteableBitmap(width, height);
|
|
||||||
|
|
||||||
var stream = bitmap.PixelBuffer.AsStream();
|
|
||||||
stream.Seek(0, SeekOrigin.Begin);
|
|
||||||
stream.Write(pixels, 0, pixels.Length);
|
|
||||||
|
|
||||||
bitmap.Invalidate();
|
|
||||||
|
|
||||||
var b = bitmap;
|
|
||||||
Background = new ImageBrush
|
|
||||||
{
|
|
||||||
ImageSource = b,
|
|
||||||
AlignmentX = AlignmentX.Center,
|
|
||||||
AlignmentY = AlignmentY.Center,
|
|
||||||
Stretch = Stretch.Fill
|
|
||||||
};
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
if (buff != IntPtr.Zero)
|
|
||||||
{
|
|
||||||
Marshal.FreeCoTaskMem(buff);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnSizeChanged(object sender, SizeChangedEventArgs e)
|
|
||||||
{
|
|
||||||
UpdateBitmap();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnTapped(object sender, TappedRoutedEventArgs e)
|
|
||||||
{
|
|
||||||
sample?.TapMethod?.Invoke();
|
|
||||||
}
|
|
||||||
|
|
||||||
public Demos.Sample Sample
|
|
||||||
{
|
|
||||||
get { return sample; }
|
|
||||||
set
|
|
||||||
{
|
|
||||||
sample = value;
|
|
||||||
UpdateBitmap();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,20 +0,0 @@
|
||||||
{
|
|
||||||
"dependencies": {
|
|
||||||
"Microsoft.ApplicationInsights": "1.0.0",
|
|
||||||
"Microsoft.ApplicationInsights.PersistenceChannel": "1.0.0",
|
|
||||||
"Microsoft.ApplicationInsights.WindowsApps": "1.0.0",
|
|
||||||
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0",
|
|
||||||
"SkiaSharp": "1.54.1"
|
|
||||||
},
|
|
||||||
"frameworks": {
|
|
||||||
"uap10.0": {}
|
|
||||||
},
|
|
||||||
"runtimes": {
|
|
||||||
"win10-arm": {},
|
|
||||||
"win10-arm-aot": {},
|
|
||||||
"win10-x86": {},
|
|
||||||
"win10-x86-aot": {},
|
|
||||||
"win10-x64": {},
|
|
||||||
"win10-x64-aot": {}
|
|
||||||
}
|
|
||||||
}
|
|